STM32G061 cant connect to STM32CubeProgrammer unable to get core id

Wiring from st link to the stm32g061

It does not connect to STM32CubeProgrammer with the stm32G061 it keeps saying Error: unable to get core ID
Error: No STM32 target found! If your product embeds Debug Authentication, please perform a discovery using Debug Authentication.
I have NRST pulled high with a 10k ohm resistor and then a tactile button which will make it go low when pressed.
The pinout for the STM32G061 is the same as the STM32G050 and when I have the same wiring as I did with the STM32G050 on this st link v2, but with the stm32G050 it connected correctly in STM32CubeProgrammer.
Why doesn’t it work with the STM32G061?
