This is one way to do it (in Python 3.x):
escaped = a_string.translate(str.maketrans({"-": r"-",
"]": r"]",
"": r"",
"^": r"^",
"$": r"$",
"*": r"*",
".": r"."}))
For reference, for escaping strings to use in regex:
import re
escaped = re.escape(a_string)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…