How to do regex search and then show the regex match as an output in jinja2?

Solution
{% for vul3 in vul.ports_data %}
  {% with vulns as vul3.vulnerabilities.vulners|trim|length %}
      {% for cve in vulns.regex_list %}
        ...