Use re.escape instead of hand-rolling