The goal of sanctions is to hurt the target country as a consequence of their actions, and to stop the flow of goods that may be helping their military directly. Apart from the fact that these sanctions are very difficult to fully enforce as already mentioned, the goal of the sanctions is not to cripple the whole economy. Destroying the economy of a large, nuclear armed nation may not have the best outcomes. Germany went to war in the teens because of expansionist goals (like Russia today), but their collapsed economy after the war is what led directly to them going to war again in the 30s.
War is also a great way for dictators to stay in power, especially when there is economic hardship at home. This is why I think China will invade Taiwan in the next few years.
From the perspective of "history repeats", China is obviously going to invade Taiwan. Also from the perspective of "history repeats", its not actually going to have any significant or long lasting benefits for anyone, China included. But that won't stop China.
It seems like we saw the effect of Taiwan and microchips during the worst of the Covid period. Automobile manufacturers, for example, seemed to have problems getting microchips to assemble their cars. Many microchips are made in Taiwan.
Bicycle enthusiasts may not like high quality bicycles made in Taiwan being no longer available.
Internet says they make the following in Taiwan (Formosa)
semiconductors, petrochemicals, automobile/auto parts, ships, wireless communication equipment, flat panel displays, steel, electronics, plastics, computers
It seems any time one of these dictator countries decides to go on a conquering adventure, it messes up the world's economy. Maybe, China is a little smarter than Russia. Maybe, the 22 million people in Taiwan who have been investors in the mainland are better left alone for a bit. China has time and a lot of other issues to resolve. They have greatly prospered for 2 generations. Why mess it up?