Sftp works fine; restic does not

In Usability issue with sftp and sftp.command - #2 by fd0 the config file is specified before the remote host name. Does that work? Or does it help to add a trailing slash to the repository path?