Gestures doesn't work in gnome 40

The gestures only work on Wayland. That might be the cause. If you have an nvidia card Gnome will disable wayland by default. You can enable wayland following this thread:

Note that xwayland support for nvidia cards is only several days old so enabling wayland will have some downsides as well. The ones I’ve notices so far are slightly blurry windows for the xwayland based apps and the fact that Firefox doesn’t let me screenshare when I set its wayland env-variable (Chromium in xwayland does).