Datapack that lets players use /tp on a realm.

So I've got a realm through Java and I have 7 playes who I don't want all OPed and I read you can essentially remake commands with datapacks and let them be used with /trigger but I have NO idea what I'm doing and the only tutorials I could find are before the formatting changed to in 1.20.5 so I'm not sure how to accomplish this. I've never made a datapack, but I would think this would be pretty simple. The other issue is making sure it works on realms, there's a pack made by Eclipse Studios that I thought would work, but for some reason it just doesn't work with realms. Help would be greatly appreciated.
Continue to help post