I think you need to intercept the network request then decrypt it using the key.¹ Can be automated I guess, not sure if someone has done that yet however.
[1]: https://gitlab.com/fuck-capitalism/spotifykeydumper/-/releas...
[1]: https://gitlab.com/fuck-capitalism/spotifykeydumper/-/releas...