You can reset an iPhone, even without the password, by putting it into "recovery mode" or erasing it via iCloud's Find My service.
To set up Face ID with your mask, update to iOS 15.4, then head to the Settings app and tap "Face ID & Passcode." ...