Change regex patterns to raw strings if characters escaped