How to get the version of the installed package with regexp via Ansible?

There are several packages with a common name: package-somethins1 package-special

`

---
- hosts: Special_hosts
  name: "Get version of RPM"
  tasks:
    - name: yum_command 
      yum:
        list=installed
      register: yum_packages

    - debug: var=item
      with_items: "{{yum_packages|json_query(jsonquery)}}"
      vars:
        jsonquery: "results[?name=='package*']"

`

How to get the version of the installed package with regexp via Ansible?