[fix] escape regex special characters

Use the \ character to escape a character that has special meaning inside a regular expression.