tax the wealth, over %NNN million. the moment one gets a loan with shares as collateral, the wealth is measured and taxed at the real estate rate (or different).
No, there are provisions for not paying the tax for houses if you are a real estate professional or live in the house 3 of the past 5 years. Other examples like 1099 exchange.