iPhone keyboard dictionary is not restored from iCloud backup
You can try SwiftKey. But the issue with 3rd party keyboards is that they might very well be transmitting whatever you type back to their servers. You never know. That's the reason I still haven't installed it on my iPhone. I had it installed on my Android because I controlled it using a firewall. iOS doesn't have any, unfortunately.