Fix \n in regex sanitizer