Hi,
You have to think trough, if you want somekind of future proof, AM5 will be the ONLY WAY but you'll also spend more.
On the other hand, AM4 just saw a 5700X3D release that could fit the budget of many.
I would go for the 5800X3D if gaming is all you want but beware that the next time you need to change everything.
The 5800X is more focused on productivity than gaming when comparing with the X3D part.
See some games on YouTube comparing between 7700X and 5800X3D and make the call based on what you play.
Good luck
The Englishman