Escape regex for proper matching