So I added in custom music using a resource pack and to play the music I used this command and it did not work at all:
/execute as @a[selector] run music play music.game.example
Instead of playing for the selected player no matter what I did it played for all players in the world. I am assuming this is a bug and that is why I am submitting this report. This bug is making it very difficult to have custom music through resource packs.
This is not a bug, see MCPE-104912.