I had the same happening in Fedora 36 - QWERTY instead of AZERTY in the login screen. The "localectl set-etcetc" command seems to have done the trick. Thanks a ton for this! :-)
Comments on How to change keyboard layout on the GNOME and Plasma login screens
Thank You so much!
You can't even imagine my pain when I had to type my password on czech qwertz layout every time.
God bless you and your whole family!