An expired mask will almost certainly be better than no mask. And especially so stored well with no visible degradation – it's heat & contamination by elements that could jeopardize their essential properties.
(Some N95 masks I bought during last year's northern California fires are individually sealed in cellophane with no expiration date. Stored in a cool, dry place they'd likely be fine decades from now. If some governments bought flakier masks in more-fragile packaging with early expiration dates, that's on them.)