Apologies for the late reply. I hope you've figured it out. If not, you can take advantage of the Playlist relationship endpoint and provide tracks as the relationship. It provides you with all the tracks.
Example:
https://api.music.apple.com/v1/catalog/us/playlists/pl.f4d106fed2bd41149aaacabb233eb5eb/tracks
Topic:
Programming Languages
SubTopic:
Swift
Tags: