Bricked STM32 with Read Out Protection Level 1, can't disable it
I think I've managed to recover the board, using STM32CubeProgrammer (not CubeIDE, this is a different program).
The only thing I had to do was changing RDP to 0xAA (no protection) and now I can reprogram the IC.
First install the program and click Connect to STLink, then: