AFAIK the cause of the issue is how Blender handles text (see #139761 - Blender Text Editor Font Display Issue - blender - Blender Projects), but the occurences highlight on selection essentially isn't usable when using odd numbers of font size in the text editor:
Perhaps a little help about that could be as simple as adding a hint in the GUI:
Maybe even below the text editor's font size property.