Yeah, I learned that lesson the hard way buying a 9th gen Intel chip and having literally zero upgrade path on the same board.
My plan is to get the 7700X bundle, which for $400 with board and 32GB DDR5 is a steal, then when AM5 is replaced get a new CPU from the final generation.