Assigning IPv6 Port Mapping in docker_container leads to replacement with DEFAULT_IP_REPLACEMENT_STRING

Dear Community,
Context of my situation:
I am trying to deploy a DNS-server as docker container using ansible and the docker_container module. The Setup is running since years, but now I am trying to extend it by IPv6. Therefore I configured an IPV6 ULA on the docker host and enabled ipv6 in the docker deamon. Now I am trying to publish the ports of my container not only to IPv4, but also to IPv6. As the container is also used as DNS server by some other containers, I do not use the bridge network, but several custom networks. The port mappings are there as external clients are supposed to use the ports directly, without going through the docker networks.

The Problem
my YAML task for setting up the docker container looks as follows:

- name: ensure pi-hole is up
  tags: pihole
  docker_container:
    name: pihole
    image: pihole/pihole:latest
    pull: "{{ update_docker_image }}"
    ports:
      - "53:53"
      - "53:53/udp"
      - "[fd00:0:0:50::50]:53:53"
      - "[fd00:0:0:50::50]:53:53/udp"
    networks_cli_compatible: yes
    networks:
      - name: dns_network
      - name: monitoring_network
        ipv4_address: 172.20.0.100
      - name: traefik_network
...

I also already tried some simplified IPv6 like [::1]:53:53 for testing purposes, but the result stays the same.

Expected Behavior
Ansible deploying a docker container that listens to port 53 on IPv4 and IPv6

Actual Behavior
I am getting the following error:

[ERROR]: Task failed: Module failed: Error creating container: 400 Client Error for http+docker://localhost/v1.52/containers/create?name=pihole: Bad Request ("invalid JSON: ParseAddr("[[DEFAULT_IP:iewahhaeB4Sae6Aen8IeShairoh4zeph7xaekoh8Geingunaesaeweiy3ooleiwi]]"): each colon-separated field must have at least one digit (at "[[DEFAULT_IP:iewahhaeB4Sae6Aen8IeShairoh4zeph7xaekoh8Geingunaesaeweiy3ooleiwi]]")")

What I already checked
Did some googling but could not find anything. Furthermore I had a quick look at the Github repo of the docker community and found out that the string from my error message is defined there as hardcoded _DEFAULT_IP_REPLACEMENT_STRING .
Following the usage of this function, I found this method which is replacing the IP with the _DEFAULT_IP_REPLACEMENT_STRING in some cases.

Check out the 5.0.3 release of community.docker, it has a bugfix for this: Release 5.0.3 · ansible-collections/community.docker · GitHub

Hi Felix,
thanks for the hint. It seems that updating indeed fixed the issue.

Kind Regards,
Simon