Escape filter before building regular expression from string
Using a basic escaping function