Special characters next to numbers and T/Y on my keyboard doesn't work

I have this issue, I need to use sticky keys otherwise I’m not able to use my keyboard. I installed fresh new Fedora 41, after my old Fedora failed to upgrade.
I’ve added a Polish language and a keyboard. And I’m not able to type special characters that are next to numbers (except % and ^) on my keyboard and uppercase T and Y. I need to use sticky keys, which is not ideal. In GNU Emacs, sometimes I trigger an unexpected shortcut (like I have a key mapping Shift+Tab to switch between files in the same major mode, and it sometimes changes files when I don’t want to).

What is wrong with my keyboard, how to debug and find the root cause and fix the issue?

Is your keyboard layout currently set to Polish in the settings, or perhaps it has defaulted to English with a US layout?

I have a widget in Xfce panel where I can switch between Polish and English (USA), it works the same for both.