You can make soap at home, a factory anywhere can trivially make it. And face masks are paper plus string, again hardly difficult to manufacture in any city in 2020. (In the UK most paper was made centrally in 1918, I happen to know this because I live near the site of the former paper mills - https://www.thepapertrail.org.uk/).
Look, I have a lathe at home and can make an engine if I want to, thing is other people can't because they never were interested in that. And I used the simplest things possible as examples.
Realistically, where would you start with these in a typical deindustrialized town today? "A factory" is a poor answer, some towns have none really, and factories are not interchangeable anyway.
There are small factories - everything from workshops to industrial estates - all over the place. If anything it's much better now because CNC machines and lathes are cheap, widely available and very versatile.
Yes, they're cheap and widely available. That's because we import them from China.
If your plan for resilience against a long-term disruption of global trade has a critical dependency on global trade, you may need to rethink it somewhat.
face mask: some variation of paper cloth. Go to the local cellulose factory (I doubt every city had one back then, they were and still are near cheap energy/wood), specify the quality of the paper you want and get it (you have to pay for it, because today they are probably producing paper for $$$ bills). Some yarn: cotton/wool has always been imported in some locations, a local workshop will build a spinning machine @1918s quality in no time. The same for sewing machines (those things haven't changed a lot if you don't factor in automation (which even today noone bothers to pay for the existence of cheap slave labor in Bangladesh)).
Soap bar: we have a lot of animals around here and butcher them locally
giving you everything you need (https://www.essentialchemicalindustry.org/materials-and-appl...). You just have to find someone who is willing to do the necessary stuff 1918-style :)