Yearly reminder that Nokia perfected the slideout keyboard on their N900 model over 10 years ago
Also there was an actual linux distribution in it, Maemo. You could do things with it.
Maemo is still actively developed thanks to the fanatical/fantastic community around it.
I usually use Whatsapp web and the Signal desktop app at my desktop when I want to write more than sentence or two. A physical keyboard makes it so much easier. For example, I left making my comments here today until I sat down at my desktop.
If you must use a phone for typing more than a tiny bit, buy a keyboard for it. Even a little bluetooth keyboard is a lot better.
I am tempted by phones with keyboards. I used to have a Blackberry a long time ago and there are Android phones in similar formats.