First, I write them down (if I don't have a transcription yet), whatever sketchy form.My question is, how do you go about learning syncopated or complex rhythms or patterns?
Second, I sing the rhythm (probably slowly if it's complex).
That's it! Once it's into my ears then it's easily into my hands as well. It does help that I had rhythm solfeggio training at school 30+ years ago, and that occasionally I play with rhythm training apps (among other productive apps) rather than watching social media videos.
.

