This follow current Python style best practice when no escape
is needed, and avoid a syntax warning when the string escapes
a character only to be escaped for regexp, not for Python strings.
Fixes the following issue on Python 3.12+:
/usr/local/bin/shell:138: SyntaxWarning: invalid escape sequence '\|'
matches = re.search("(.*)\|(.*)", variable)