Home prices work their way in through owner-imputed rent, i.e. the rent offset by owning the home. Home purchases include a utilitarian portion (the housing) and a speculative portion (the investment gains). We don’t include the stock market in inflation; we similarly don’t include housing prices beyond the housing utility. Nobody has to purchase a home; everyone needs a place to live.
Every study that tries to include housing prices finds an inflation figure lower than CPI [1].
[1] https://seekingalpha.com/article/4173463-cpi-housing-prices
You cannot include for sale housing in the index because the price paid is a speculation/estimate by the buyer (future looking)
Rent is a snapshot of today's price.