Jinja2 Regex Find Substring