My i3 3rd gen potato's motherboard is fench fried. What should I buy next around $300 budget (just CPU, Mobo, RAM)?

My PC broke (motherboard is done). I was using i3-3200 (yes u read it right. 3rd gen) with 4GB RX6400.

Now I want to upgrade. I want something with a really broad upgrade path (obviously team red) but I want to keep the price low. Should I go with AM4 or AM5?

The price difference is not much. Like $60-$80 more or less

But budget is a concern for me. I want your help