Reversed order of regex and string escape