I am not sure if you’ve had this idea suggested before. Air duster cans (compressed air in a can) is great for cleaning computer keyboards and other devices.
If you're upgrading your AirPods or gifting a pair to someone else, consider this cheap little tool that prevents nasty buildup.