The 7800XT is a good choice for 1440p gaming. You may also want to check out the closely priced 7900GRE.
Keep in mind the 5700G is only capable of PCIe 3.0 so there will be a minor performance loss for most PCIe 4.0 cards. Just stay away from x4 or x8 cards like the 6500XT or 7600XT as those will be significantly more impacted.
Ryzen R7 5700X | B550 Gaming X | 2x16GB G.Skill 3600 | Radeon RX 7900XT
Ryzen R7 5700G | B550 Gaming X | 2x8GB G.Skill 4000 | Radeon Vega 8 IGP
Ryzen R5 5600 | B550 Gaming Edge | 4x8GB G.Skill 3600 | Radeon RX 6800XT