Preserving and routing based on subdomain in Cloudflare Tunnel

I’m using Cloudflare Tunnel (cloudflared) to route traffic to my internal services. My setup includes a wildcard DNS entry (that is pointing to my tunnel) and a wildcard ingress rule in the cloudflared configuration to catch all subdomains under *.tst.agilecodeconsult-internal.eu. However, I’m having trouble preserving the subdomain information and correctly routing requests based on the subdomain. Here is my config:

{
  "ingress": [
    {
      "hostname": "*.agilecodeconsult.com",
      "originRequest": {
        "httpHostHeader": "*.tst.agilecodeconsult-internal.eu"
      },
      "service": "http://*.tst.agilecodeconsult-internal.eu:80"
    }
  ],
  "warp-routing": {
    "enabled": true
  }
}

I get the error:
{
“error”: “Unable to reach the origin service. The service may be down or it may not be responding to traffic from cloudflared: dial tcp: lookup .tst.agilecodeconsult-internal.eu: no such host",
“connIndex”: 0,
“originService”: "http://
.tst.agilecodeconsult-internal.eu:80”,
“ingressRule”: 0
}

The error makes sense because the wildcard is used as is. I am using the Cloudflare UI. Is this possible?