Add regex_replace jinja2 filter

This adds a regex_replace filter that can be used in templates.