DeepSleep bricks XIAO_MG24

Unless you have used an old library there should still be the “escape hatch” option available on D0.
Hold it low when resetting (or powering) and the app should not run. You can then re-flash.

If that fails, try the reset-recovery script… It should be in this post or the wiki.

What OS are you using?