Active Apple Music subscription and YouTube Music account
Sign in with your Apple ID
Select “Transfer a copy of your data” and follow the on-screen instructions
Log in to the YouTube Music account where you want to transfer the playlists
Once done, your playlists will appear in YouTube Music