It is not just the search word highlighting that would have to be reworked. Shift-selecting notes gives no indication on what’s being selected either. This should be addressed for people with visual impairments.
Just to be clear, this is a Windows 11 setting where you’re seeing this and nothing to do with a custom theme? (Not using Windows at the moment, so I cant’t have a look.)