Ansible nested variable regex search

How do we do a wildcard search with ansible nested variable?

test:
  name:
    address:
         zipcode: 12345

Ansible nested variable -

{{ test[name][addre*].zipcode }}

You can't use glob characters for keys.
Use the json query filter instead:
https://docs.ansible.com/ansible/latest/user_guide/playbooks_filters.html#json-query-filter