my fingerprint scanner often fails when I'm sweaty at the gym
Not that Face ID is perfect. When I go to the doctor, they make us wear masks, and I do breathing treatments a few times a day - all of which breaks Face ID.
I assume that the mask covers only a portion of your face; if it's a full-face mask, then obviously this would greatly degrade your device's security by allowing anyone wearing that mask to unlock it. However, I've found that Face ID can do a pretty good job of recognizing you from the nose up.