1.3.48: Allow `=` inside regexes
A fix for something else introduced a potential issue that when regular expressions have a `=` inside them, they wouldn't be recognized as such. This should make the regex detection more robust by checking the surrounding code, instead of limiting what can be inside.