Something very important to learn is the politicians, the press, anyone from the business world, talk about this or that thing being bad for "the economy", they are talking, almost everything, about how it could limit the capacity of investors and shareholders to make infinite money without doing any meaningful labor.
The concept of "economy" has been totally detached from anything affecting day to day lives of the common folk since the 80s. The last 20 years have been specially heinous: when the economy was going bad, you were fucked. But when the economy was going well? Fucked too. And any time there any measure to benefit the workers was taken (raise the minimum salary, making it harder to fire people, increasing the work safety inspections, giving folks money to stay at home during the pandemic... Basically anything that actually made people lives better), the press always chant "this will risk tanking the economy", and, you know what? It never does. It never happen. Because the economy is no longer about the common good, but about making the rich, richer.
"but Javi, as an example what happens if the government (for example) limits the prices of home rentals and then the owners decide that they don't want to put their houses on the market anymore?"
Oh no worries. We force them. We tax unused houses by 10% of their value annually. We pass a law to allow people and companies to own a max of two houses per person and nationalize anything above that. We create a national rent market where any house the hasn't been in use for over a year enters automatically no matter of its owner will.
If you stop having corporate profits as your North Star and change it to maximize the common good, suddenly there are a myriad of things government can do to improve the real "economy". And when you look into it, everything goes back to Reagan and Thatcher. Before that, "government intervening in the economy" was something common, not the anathema they have made it be today.
And you know what? For most of the people, it worked much, much, much, much better than how "the economy" has worked for the most during this entire century.