Most important is the size or capacity of your RAM. These days, it is pretty much default to have 16 GB RAM in a gaming PC, but more expensive systems often have 32 GB or more. Some low budget PCs have only 8 GB, but since RAM is relatively cheap, there rarely is any point going lower than 16 GB.
The number of sticks is also important to consider. Nearly all CPUs run in "dual channel" mode, which means they perform best with 2 sticks of RAM. Some enthusiast CPUs run in quad channel, which means you want 4 sticks. For most builds, 2 sticks is optimal. This can still vary depending on CPU, so googling the recommended number for your specific CPU is always a good idea.
The actual speed of RAM is determined by both the memory's own speed (measured in MHz) and the CL value (CAS Latency). Ideally, you want higher speed and lower CL. The most common combination today is a speed of 3200 - 3600 MHz and a CL of 16 - 18 for DDR4. For DDR5, it can vary a bit more, but the most common combination is a speed of 5600 - 6400 MHz and a CL of 30 - 36.
Also note, the real speed that your RAM runs at is limited by your CPU and motherboard. E.g. AMD 600 Motherboards can only run up to 6400 MHz unless you overclock, so there is no point in buying RAM with 8000 MHz speed.