Google and download a copy of STM32 Cube Programmer, avoids the IDE/GDB nonsense
Review the board manual, there are diagrams and schematics. There are a couple of spare jumpers attached to board, see upper top right and left.
Short the VDD and BOOT0 pins with said jumper. Puts the chip into loader mode, not running your code, that's probably bricking the board
Power cycle, remove and reapply power to the board via the connector.
https://www.st.com/en/development-tools/stm32cubeprog.html
Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..