Escape external regex parts (coming from OSM or user input) to avoid failing regex parsing