Reset your AirPods and it will work. At least it worked for me. If you don’t know how to do it click here.
support.apple.com

How to reset your AirPods and AirPods Pro - Apple Support
You might need to reset your AirPods if they won't charge, or to fix a different issue.