There is currently a known issue with Steam itself causing controllers to not be properly detected when using Mac or Linux.
If you're using a PS4, Xbox, or other 3rd party controller you should be able to work around this by:
1. Opening Steam's Controller Settings
2. Turning OFF Steam configuration compatibility