Java 17 started to be officially supported with SonarQube 9.3.
The only two supported versions of SonarQube are currently v9.9 LTA and v10.7.