How to unbrick a dead XIAO using ST-LINK and OpenOCD

Why did you have to flush the bootloader in the first place?
Does the last uploaded sketch have code to make the orange LED bright / dark?