The classic example of this involves parking meters. It seems unlikely that the money from the meters pays for the cost of collecting the money nor that the cost of prosecuting infractions pays the administrative costs.
The purpose of parking meters is to restrict "luxury consumption" of parking spots in highly desirable spots. Luxury consumption involves somebody parking in a prime spot all day long. The advantage to society is that the one person who parked there all day long might only be ten steps from the entry to their place of employment and save 50 paces of walking from the perimeter of the parking lot.
The disadvantage is that if the nine-hours between 8:00 AM and 5:00 PM were metered out in 15 minute increments then 36 people could enjoy the benefits of that shorter walk. As a merchant near the prime parking space, you might notice patrons choosing to not buy large (potentially profit generating) items if they have to carry them 60 paces back to their vehicle.
Prices pull resources
Allowing prices to float is the mechanism that causes resources to percolate toward the highest value end-uses. If the price of baby formula moves upward, then the factory extracting protein from soybeans will sell it to plants making baby formula rather than cheap, canned chili because plants making baby formula can afford to pay the highest prices.
Mandating prices destroys that mechanism and kills any incentive to increase supplies of products and services that are in high demand.
The next thing that politicians do as price mandates fail to work as envisioned is to subsidize low-income buyers. That results in people buying products just because they can. Getting back to baby-formula, women who can breast feed (and who would breast feed if they were paying for formula out-of-their-own-pocket) buy subsidized formula because they like the convenience. Or, they buy the formula and resell it.
Stevie Wonder could have seen it coming
The cascading failures of the Socialists may have been triggered by Covid but the end results (shortages) were entirely predictable.
Ham-handed regulations coupled with freezes on evictions (basically a form of rent-control) and handing out money willy-nilly caused shortages. It is no longer a question of "If?" but a question of "What next?"