I second this.
Something else I'd like to point out is that, while RAM is expensive, you'll be just fine with 16gb DDR4. People *love* to tell you that you need 32gb, but you really don't. You only need it if you're playing games with tons and tons and tons of mods, or doing heavy development and compiling. To put it another way, if you need 32gb, you'll know you need 32gb.
You don't need the newest components either, especially for what you're trying to play. I personally have a 6600XT (2021, mid-range GPU) that I have no problems with, even the rare occasion that I play a modern game. I have a 12100F CPU which is also a pretty midrange CPU from 2022. I've had no issues with my current components. My point being that you do NOT have to go for the absolute newest things, despite what the internet may tell you. That being said, certainly don't go shooting for parts that are 10 years old, either.
I really use a mix of Reddit, PCMag, Tom's Hardware and UserBenchmark whenever I build a PC. Don't bank on UserBenchmark for everything because there's been some biases and such found on it, but for a broad idea, it can be helpful to compare parts to some degree, especially since the folks over on Reddit love to tell people that they need the newest components to run fucking Doom. PcPartPicker will tell you if anything is incompatible... Outside of that, if you just get parts from around the same couple of years and can see that they all seem to be decent enough, you'll be fine. There's lots of different options out there, but you're not going to suddenly screw everything over by buying the wrong parts.
Another little tip is that you can buy some components used. Your CPU, and especially GPU can be purchased used which can help you save a lot of money. I've been building PCs for many years and most GPUs I've ever had were used. You can get a used GPU for $50-100 cheaper than buying new. CPUs are similar, although arguably a LITTLE riskier. RAM is also possible to buy used without too much risk, but I doubt you'll find it a ton cheaper right now. DO NOT buy a PSU or hard drive used, as a used drive could fail, and the odds of getting a bad used PSU are decently high and you wouldn't want your PSU going bad.
Anyway, that's my long ass ramble— sorry if there's too much info in there, lol.