subdomain wildcard first level

I was looking at workers-and-pages-helpcan't make route matching work with wildcard subdomain and am encountering a similar issue however just with the first level sub domain.

I have a worker that I want to reply to *-val.mydomain.com/* I've tried setting this up as both a custom domain and a worker route, but no matter what combination I try I get a 522 error.

Do I also need to go the Advanced certificate path?
Was this page helpful?