Python - re.error: unterminated character set at position

You must escape the special characters in your regex:

slice = "this characters \{}, \[], \(\)"

Note that only the opening brace and square bracket need an escape, but both parentheses.