I figured it out. Interestingly, cmake was not selected on the Qt installer by default. I had to install cmake through the Qt Maintenance Tool and then select the cmake version on the Qt6.8.3 default kit. I find it very strange that it was not installed by default. Tricky tricky...
image.png