If readout protection hasn't been enabled, then this is pretty trivial.
Just get an ST-Link V2 programmer (either digikey or similar if you need it quick, or get a cheap aliexpress clone if it can take a while).
Connect the ST_Link to the SWDIO, SWCLK and reset pins of the micro, along with a GND.
Open either ST-Link utility or the STMCubeProgrammer, connect to the chip and read out the data.
If read out protection has been enabled, then it becomes a bit more difficult. I am not sure the process, but i do know that the readout protection has been broken/bypassed on most if not all STM32 chips.
Also be very careful if read out protection has been enabled. If you accidentally turn this off while connected with the programmer, then it will wipe the flash of the chip.