I bought a condo at 23, sold it at 26 to move abroad for a year (broke even). Bought another condo at 27 with soon-to-be fiancé, sold it at 30 to buy a SFH (probably mostly broke even). We sold that house about 4 years later for a bigger SFH that I will never leave (pretty much broke even on that sale too).
We’re not great at real estate in terms of making profits on the sales, but we’ve loved all of the places we’ve lived and each helped with the down payment on the next.
We also now own a lake house that I hope to never sell and that we probably paid too much for but is currently my most favorite place to be.