The following code:
text = \"I\'m a string that contains this characters {}, [], ()\" slice = \"this characters {}, [], ()\" print([ (m.start(0), m.end(0)) f
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.