iOS / ipadOS app with share action for SCP / SFTP?
You can SFTP using iOS Shortcuts app.

Shortcuts can take input from a share action.
Shortcuts has an action ‘Run Script Over SSH’ and passes action input to stdin.
You can cat stdin to a file on the destination.