Maybe Apple can give some tips to Twitter, because it's getting an edit button before Twitter!
The upcoming iPhone software update, IOS 16, will include options to edit and unsend texts in iMessage. There will also be an option to mark certain threads as unread, so you can come back to them later.
The options will be available for 30 days after sending.
There's been no update on when the new IOS update will rollout.