Also, replacing /shorts/ by watch?v=, the default URL of a Youtube video, works.
So, in youtube, on https://www.youtube.com/shorts/SWeTMdyv50Q, doing right click → Copy video URL will work since it returns https://youtu.be/SWeTMdyv50Q which is correctly displayed on Discourse (with the regular wide ratio though).