Jump to previous/next whitespace (space)

Hello all,

Is there some clever way to configure cursor, in text fields (browsers, slack, outlook, etc.), to jump to previous/next whitespace (space). Option + left/right arrow only moves the cursor to the previous/next word boundary.

ps: I suspect that the only possible way is to have some script doing this, but I'm fine with that. I've tried to vibe-code it, without success so far.

unfortunately I don't think there is a good way to achieve this. Here are all the functions macOS allows to assign to keyboard shortcuts for text / selection NSStandardKeyBindingResponding | Apple Developer Documentation