On Linux, any first-party Switch, Playstation, or Xbox controller works out of the box. Most 3rd party controllers also work out of the box. Even Wii remotes work once paired over bluetooth (and the pointing works but takes some setup).
On windows, xbox controllers work out of the box, except for very old ones which require a driver. 3rd party pc controllers will tend to work out of the box (or sometimes with a driver), but wired Switch and Playstation controllers need hacky workarounds to work or to get full functionality. Wireless controllers can often be paired with bluetooth, but I’ve had hit and miss luck with windows and first party Sony/Nintendo controllers