And that's where I completely disagree with you. You're right that those who use the term "socialism" as a pejorative to describe everything they disagree with won't apply it consistently because they know it would place them firmly within the irrelevant fringe.
However, that consistent use of "socialism" would apply to virtually any use of the State to create outcomes which willing buyers and sellers wouldn't negotiate by themselves.
Sure, there are extreme examples about public safety (such as your fireworks example). But, zoning laws dictating how your neighbor must use their own private property in accordance with yours is a taking of property by the State for the benefit of another. There's no reason why you should be compelled to build with 2x6s. There's no danger to the public. Nobody requires them to enter your house. It just makes it more predictable that you can enter any house without asking all the necessary questions you are responsible for to ensure your safety.
We do those things to promote stability, predictability. Bailing out the financial system was similar. A similar interference of a market, producing winners and losers which wouldn't exist if market forces were left to operate unimpeded by willing participants.
and we go right back to building codes.
once you complete construction, sure, your house is YOUR problem, but if it topples over it can crush a passing pedestrian, or your neighbor's house.
it is also a commodity. you may decide to sell it to somebody else, and if you didnt follow the codes for minimum safety, the buyer gets BONED when your shoddy construction collapses long after you have fled the area, leaving the buyer with a pile of rubble.
building codes are designed to ensure minimum standards for your house, to protect future owners from your shabby workmanship
the codes establish a MINIMUM standard. if you decide to frame your house at 14 from center instead of 18 (the current code in my neck of the woods) you can totally do that.
you MUST install plumbing that meets minimum standards, but you can do much better if you so desire
you MUST install the electrical within minimum standards too, so your shit doesnt catch fire and burn down your neighbors house.
this is not socialism, this is SOCIETY establishing standards, like "you must wear pants in public" or "you may not drop a deuce in your neighbor's lawn"
all social standards and interactions are not Socialism. Socialism is a governmental and economic scheme defined by Marx with established meanings, and building codes are not involved.
trying to re-frame the language to stifle debate is what youre doing, with this reductio ad absurdum nonsense, and trying to re-define Socialism to encompass all Society.
there was Society long before socialism was invented, and building codes are far older than Marx's pipe dreams of utopia