I have the same issue with a i5-1135G7, latest bios (3.17 I think). I can’t Fn-Esc to lock Fn in Fedora even after trying the above. I dual boot back to Win 10 and it works fine there.
Please give this a try and report back. [TRACKING] Fn key stops working on PopOS after a while - #32 by Matt_Hartley
Thanks. I had tried this prior to posting and have used Win11 lately instead of Fedora. I updated everything on the system today to latest and is working now so perhaps something fixed it in interim.