refactored fuzzy search escape method to use regex