Text highlighting is 'whole word' only, why not make it character based?

Right now, only the selected whole words get matched and highlighted. For example, highlighting the word ‘mode’ in:

mode.function

Highlights also mode in: mode.script() but not: modeNew.script()

I think it would be useful to alter it so that not words are highlighted, but any sequence of characters. This is how it is currently done in gedit and in VS Code.

You can replicate the same thing with the “Find” or “Find in Files”. A configurable behavior for the selection highlight would be nice I agree.