Not sure this workflow is common enough to justify a menu action, but you could probably do this using the new shortcuts (the next update will contain a Selected Text) shortcut.
The part that is tricky is indeed the part that replaces the selected text, you are right, the entire flow wouldn’t be possible yet with shortcuts. I’ll write it down as something to see if we can provide a solution for.