The below fails with syntax error:
chars = r\'\'\'|\'*+[]".?!-/,{}()&%$_;:#@=`~<>^\\\'\'\' # SyntaxError: EOF while scanning triple-quoted string l