Although I don't know if I would be able to loop just one song, I do repeat albums that I like. So I put a few albums that I like and have listened to many, _many_ times, on queue. Already knowing the songs makes my brain settle (or at least reduces the cognitive(?) load a lot), and sometimes I even discovered "new sounds".
My personal theory is the predictability allows you to tune it out, making it invisible to your conscious brain.
Based on my half-baked understanding of Jeff Hawkin's theory that our brains are wired to notice differences.
I loop GTA V soundtracks for driving, the curation seems to be optimized for it https://open.spotify.com/playlist/2YYOp3xA7HcgZQ5hhRJuK1?si=...
While I loop meshuggah's whole album for working. The polyrhythmical barrage of riff is cathartic.
I'm musical in general, having grown up doing various band activities, so there's always a song playing upstairs. Having something external to listen to simply allows me to switch tracks.
Instead, I have what I call "loop songs", which are selected favourite tracks that span a range of genres from fairly heavy metal to Afrobeats. When I want to focus I pick a loop song and set it to repeat (the ideal volume varies per song, but is typically moderately loud). I can't explain how or why but it settles my brain far, far better than any white noise or "chill" playlist I've tried.
It's also a point of humour with my friends because they're horrified that I listen to the same song hundreds of times over a couple of days, while I'm perplexed that they can actually get tired of listening to a song to the point of disliking it.