Fixed a bug in the provider, escaping the regex