Touchpad buttons don't work after suspension

Problem

I use Fedora 38 with Gnome on Thinkpad x270 with a native Synaptics touchpad. After I suspend the laptop and wake it back up, the touchpad works as usual but its buttons don’t. Interestingly, they start working again a few minutes later.

Workarounds

Not sure if it is a workaround but, like I said, the buttons resume work after a few minutes.