That is simply not true.
First, doctors and researchers consistently say that N95s are known to provide protection against Covid.
Second, this is the first google result on that topic:
https://www.cdc.gov/mmwr/volumes/71/wr/mm7106e1.htm
Quoting from that CDC page:
> What is already known about this topic?
> Face masks or respirators (N95/KN95s) effectively filter virus-sized particles in laboratory settings. The real-world effectiveness of face coverings to prevent acquisition of SARS-CoV-2 infection has not been widely studied.
> What is added by this report?
> Consistent use of a face mask or respirator in indoor public settings was associated with lower odds of a positive SARS-CoV-2 test result (adjusted odds ratio = 0.44). Use of respirators with higher filtration capacity was associated with the most protection, compared with no mask use.
> What are the implications for public health practice?
> In addition to being up to date with recommended COVID-19 vaccinations, consistently wearing a comfortable, well-fitting face mask or respirator in indoor public settings protects against acquisition of SARS-CoV-2 infection; a respirator offers the best protection.
You can say that that might be just correlation, but as those quotes mention, we do know how N95s work: they filter viral particles. That is easy to prove in lab settings. Real-world settings involve more factors, like how well-fitting the mask is, but it would be very surprising if a good N95 properly used did not offer any protection!
N95 masks work. It's a good idea to wear one when relevant.