I checked this button on the Mac version. it works at the playlist level, when reaching the end of the last track of the playlist, it stats playing the top track of the playlist. Could be a bug with the Microsoft desktop app.
To be exact: The repeat button works if there are 2 or more tracks in the playlist. But if there’s only 1 track in the playlist the track is not repeated no matter if the repeat button is pressed or not.