Fix annoying bug in JavaScript regex literals

Now it doesn't block ST for erroneously working inside a JS regex (e.g. /\b[a-z]/gi )