It used to be that RtlGetNtVersionNumbers returned the true Windows version but, no longer

Somewhere along Win 10, the implementation changed and now the function returns values that are stored "somewhere" (likely the PEB), telling the calling program the version is whatever Windows wants the program to think it is.
I don't run Windows 11 (and never will) but, if I were running it and needed some way of finding out the version number, I'd check the product version of csrss.exe, that exe is a critical component of Windows and usually accurate information about Windows can be had by "inspecting" that file.
Try this, use Explorer to go to system32, find csrss.exe, right click on it and select properties. The properties window has a "version" tab. Look in that tab. If the product version says "10.xx.xx" then, it's quite likely cumbersome and possibly difficult to tell Win11 from Win10 (but, there is probably a way, fortunately, I don't have to find out and, won't have to find out either

)
HTH.