I have faced the same problem even though my Visual Studio 2022 version is 17.14.0
Launch Visual Studio installer Untick .Net 6 and 7
Restart and voila, now it shows 8 and 9