Is Spatial Audio used while listening to music on AirPods Pro?
Spatial Audio is only used for video:

Spatial audio with dynamic head tracking brings a theater-like surround-sound experience to the movie or video you're watching...

You can confirm if the content you're listening to supports spatial audio by toggling it off and on: