You're quite right. I was thinking of Windows 10! However, it is supposed to be back in Windows 11, though the rollout is still very slow -- probably won't see it globally until the 23H2 update is released.
For now, if you go Settings > Personalization > Taskbar > Taskbar Behaviors, you might...