The Legacy Windows Media Player is still available in Windows 11.
Open the old Control Panel.
Set View at the top to large icons.
Open the Programs and Features applet.
On the left, click 'Turn Windows features on or off'.
Expand the 'Media Features' section in the resulting list and in there, you can enable the Legacy Windows Media player.