Remove use of $.escapeRE in favour of mw.RegExp.escape