They're N95 masks, meaning that they're 95% effective... How do you sue against something that's specifically advertised as 95% effective? You would need to do a class-action with enough sample size to power statistics...
The claim for N95 masks is not that they are effective for 95% of people, it's that they filter out 95% of small particulate matter. The remaining 5% may or may not be enough to infect anyone, or 5% of those wearing, or 100% of those wearing.
The manner in which you would make a legal claim that the product is not as advertised is to take the mask and use the same certification process the manufacturer claims to be using to test efficacy.