[fix] escape regex special characters

Escape a character that has special meaning inside a regular expression with a \ character.

For example, router doesn't work properly with links, containing parentheses or other special symbols (using in regex too) without escaping.