Did you buy this from system76, or did you just install Pop!_OS on hardware you already owned?

Fixed it with the help of claude, it quickly helped me diagnose the issue and fix it. The drivers for the discrete nvidia graphics card had suspend disabled. Enabling it enabled automatic suspend when closing the lid.

Installed it myself, it’s not a system76 but a Lenovo thinkpad.