Or maybe export the library/playlist outside of Sonos, perhaps from iTunes itself:
https://discussions.apple.com/thread/250182351
I thought iTunes was deprecated? Certainly not on my Mac anymore and as I said I don’t use Apple Music as there’s no need since Sonos does it for me.
Really, I didn’t know Apple stopped it for the Mac, iTunes is still available to download from Apple on my PC?
It may depend on your OS I guess, but this is a link I stumbled upon in a search: https://support.apple.com/kb/dl1977?locale=en_GB
But there are other Apps to do these things anyway if you do a Google search, perhaps look at a tag editor. like mP3Tag, as that has export to text/excel format features too.