Being a former Swiss resident myself, I say the fault is on you for not taking your residence permit with you in the first place. You can always be spot checked for it at any time at the border or anywhere within Switzerland (regardless of COVID).
Your situation now is unfortunate but you can’t really blame AA or any airline for your error... they’re required to ensure you have proper documentation to cross the border at your destination, and currently you don’t.
Best of luck