Get the X3D version which would be the 5800X3D. If you live in NA or somehow can get the 5700X3D then get that instead of you want to save a few bucks.
Anything newer (AM5) will need a new motherboard, ram and obviously a CPU.
Performance is still insane thanks to the 3D cache, I have the 5800X3D and works great in PERP.
I'd say you would get 40-60fps around bazaar with full population.