Fix: use regex string in re.sub method