escaping interpolation characters for regex