They do not work in theory, nor practice. In simple terms, the virus is small enough to penetrate the fabric of a mask.
COVID-19 is about .12 microns in size. It’s my understanding that trying to stop it with a common mask is like shooting a BB through a chain link fence.
That's a good analogy.