Am4 or am5?

Right now I plan on building my PC so I can run it on 1440p upscaled to 4k. Won't really be playing graphically expensive games (maybe just the witcher), the rest will probably be just valorant, disney dv, gta, etc. I'll also be using this pc for productivity, light coding, watching tv in 4k. I want this build to be able to hold these capabilities and keep up with future games for another 6-7 years. Don't plan on making any upgrades till then if I don't need to. Wondering if AM4 route is a good idea in this case. My current plan is getting the AMD Ryzen 7 5800x Vermeer 3.8 GHz 8 core AM4 Boxed Processor, msi mag B550 and the saphire plus radeon RX 7900 xt.