How can I find a player's spawn dimension in 1.21.5?

Back in 1.21.4, players had the SpawnDimension attribute that allowed commands to easily check where they spawned; in 1.21.5, this tag is no longer present. How can I find this data?
Continue to help post