re.sub(r'[_#%!?@$&();.,\s]+', ' ', string, re.UNICODE) code example
Example: python re
if pattern := re.search("[iI] am (.*)", "I am tired"):
print(f"Hi {pattern.group(1)}, I'm dad!")
if pattern := re.search("[iI] am (.*)", "I am tired"):
print(f"Hi {pattern.group(1)}, I'm dad!")