Upgrade to v25.0.0 no longer accepts IPv6 hostname URL

After upgrade to v25.0.0, out Keycloak service can no longer start. We have defined KC_HOSTNAME to an IPv6 URL and we get the following error on startup

ERROR: Unexpected error when starting the server in (production) mode
ERROR: Failed to start quarkus
ERROR: Provided hostname is neither a plain hostname or a valid URL

We have our URL defined as such (ive altered some of the values, but the format is the same):
https://[1111:2222:3333:4444:5555:0002:0000:0000]/

This is a valid URL so I am not sure why we are getting this error. I have configured the JVM to have these settings and we still get the error:

-Djava.net.preferIPv4Stack=false
-Djava.net.preferIPv6Addresses=true

Ive also tried:

-Djava.net.preferIPv4Stack=false
-Djava.net.preferIPv6Stack=true

This address has worked with previous versions of Keycloak and we have only hit this issue after upgrade to v25.0.0.
Has anyone else run into this or have a solution on how to configure? I dont see anything in the docs, community, or issue log on Github. Could this be a regression?

I am facing the same issue, did you find any solution ?

If this has worked before and you feel this is a regression, I encourage you to file an issue here.

@palash-sarate No we have not found a solution as this seems like a regression. @dasniko Thank you for your message. I have opened issue IPv6 hostname address not accepted after upgrade to v25.0.0 · Issue #32289 · keycloak/keycloak · GitHub