This snippet to differentiate search highlighting vs normal highlighting no longer works

Does it work without the ‘cm-s’? See link below.

First thought is that your theme is interfering, try disabling that or removing it completely. Could also be some other third party css effect. Start in safe mode and add one plugin at a time.