Yes, replicator is a wrapper shell script that calls restic. You can see it here:
https://git.sr.ht/~jamesponddotco/dotfiles/tree/trunk/item/rootfs/home/james/.local/bin/replicator
I could rewrite it in Go or Swift, but I assume I'd hit the same problem? It's still something calling restic instead of restic being called directly.