Happening to me as well. In my case I have a dog leashed in my realms. If I am a few chunks (tested: 2 chunks) away to the leashed dog and am the only person on the server, then leave for over 5 minutes to wait for realm to unload all chunks, then join again, then the dog is no longer leashed and teleports to me. This bug does not happen in single player as far as I've seen.
Happening to me as well. In my case I have a dog leashed in my realms. If I am a few chunks (tested: 2 chunks) away to the leashed dog and am the only person on the server, then leave for over 5 minutes to wait for realm to unload all chunks, then join again, then the dog is no longer leashed and teleports to me. This bug does not happen in single player as far as I've seen.