You’re looking for something like the FUTO keyboard. They’re a sure David in a Goliath market of untrustable keyboards. An absolute gem.
No network permission, local speech dictation, and it just works. I tested it for a few days and bought the licence without hesitation.