Replaces escapeRegexp with the escape-string-regexp package.