fixed regex to escape special regex characters instead of removing them

mox's regex too stronk