phone keyboard similar to the PinePhone keyboard case
This doesn't buy you a single device with a physical keyboard, but if you're willing to tolerate a separate keyboard device, you can get those in smartphone form factor.
There are full-size keyboards that fold down to the size of a cell phone and fit in your pocket:
https://www.amazon.com/s?k=folding+keyboard
That won't solve your issue if what you want to do is to be walking down the street and tapping away, but if the concern is intensive text-typing sessions when you're sitting down, that can work.
There are also tiny keyboards that you can hold in your hand that'll talk to the phone via Bluetooth:
https://www.amazon.com/s?k=handheld+keyboard
You can get phone cases that hold both such a keyboard and the phone: