On that page you’ll find:
If you are migrating from WildFly-based Keycloak (version 16 or earlier), you cannot directly upgrade to 18.0.2. You must first migrate to 17.x, then to 18.0.2. Use the bin/migration-path.sh tool. keycloak 18.0.2 download