CodeQl relies on the Kotlin Compiler API, currently the compiler is experimental, unstable and doesn't guarantee backward compatibility, so CodeQL prefers verify the version before continuing and throw exceptions due to breaking changes.
In
#C7L3JB43G can provide more info, for example poko, metro, sentry compiler and others compiler plugin do strategy based on compiler version OR link their version to specific compiler version(
2.2.0-0.9.0
), before KSP 2.3 does the same thing with releases.