Hi EmmyLind,
Welcome to the Apple Community.
Sorry, am not familiar with AirPods myself, however:
Apple have articles online (links below) that may help you.
You might want to browse the articles to see what works for you.
Set up AirPods with your Mac and other Bluetooth devices:
https://support.apple.com/en-au/HT207974
Use AirPods with your Mac:
https://support.apple.com/en-au/guide/mac-help/mchld2f124d1/mac
If your AirPods won't connect:
If you need help connecting to your AirPods, learn what to do:
htthttps://support.apple.com/en-us/HT207
Other useful articles:
Connect and use your AirPods and AirPods Pro
https://support.apple.com/en-us/HT207010
How to reset your AirPods and AirPods Pro:
https://support.apple.com/en-au/HT209463
Change the settings of your AirPods and AirPods Pro
https://support.apple.com/en-au/HT207009
AirPods Support.
Find all the topics, resources, and contact options you need for your AirPods....
https://support.apple.com/airpods
Hope you find success in connecting ok!