A civilized society works when supply and demand intersection determines the price of goods and services.
Governments should interfere for specific cases (life emergency, masks, etc) and there are laws prohibiting scalping for these commodities - rightfully so.
Your idea of government intervention would assume that government is a rational entity. The truth couldn’t be further from it. Bribes and political favors from large companies would leave everything worse than it was before.
Imagine you're a low volume medical instrument maker and you need a dozen STM32 chips for your life saving device. Scalpers make sure that these chips are available and ready to ship, albeit at a premium which the company is happy to pay for given the circumstances.
If price sky rocket, investors will increases production until prices are lower.
Government can mess with this by limit prices causing investors to stay away, meaning fewer chips get built, thus ensuing a temporary problem gets worse.
Those assembly lines are highly specialized and extremely efficient. After all this time, the best they can do is 1% extra efficiency per month.
A short term (1-5) year problem is no reason to takes steps to ensure a generational problem.
Free market is brutal about improving efficiency and growing with demand.