Language Layout changing doesn't work in RL 9.1

Hi, I have an Issue with rocky linux 9.1 in which when I want to change keyboard layout (using Alt + Shift) It works for a while and after a few hours it’s simply ceases to work.
The quick fix is to enter the keyboard settings and configure another keybind to switch layouts (If I have 2 keybinds and I disable one of them it works too) but after doing that it works for another few hours and then again stops working.
I was curious if anyone else has had this problem before and maybe knows how to fix it once and for all