Look at the buttons right in front of the search box. Sometimes they just accidentally become disconnected, erroneous or short, and then the search does not behave as expected.
From left to right, RegExp, case, whole word, wrapper (search for the entire document, not just below the current line), you can see them with the mouse pointer.
I highly recommend that you disable these shortcuts to prevent these switching unexpectedly :)
source share