Given some string that may contain regex special characters, return a
string in which all these characters are properly escaped. May be used
to build a pattern from a plain text. Example:
?- get(regex(''), quote, '^hello*', S),
get(S, value, T).
S = @27463123
T = '\^hello\*'