Escapes every character that has a meaning in a PCRE2 pattern, so that
the result matches x literally, as Go's QuoteMeta() does. The result
is also literal under the x flag, which gives whitespace and # a
meaning. To match a whole pattern literally, literal = TRUE in
re_compile() is simpler.