Not trying to be mean but I wish people would stop giving incorrect advice. Just because you couldn't figure out a way to do it doesn't mean there is not a way to do it. Toggling the iCloud Drive on and off definitely solved this problem!
So before you tell someone to waste an hour of their time putting in all of that new information perhaps you should be a little patient in waiting to see what others solutions are and wait to see whether or not others could possibly be more solution oriented than you were!
I had mine disappear and no amount of toggling worked. Even adding or removing on my Mac didn’t sync them. It was only after the next update came out that they came back. Very weird.
A previous time I was able to get them back with the toggle but not the most recent.
Some situations work well for some at different times. Other times even the same “solutions” don’t work.
If you’re using text replacement a lot, it doesn’t hurt to have a backup somehow just in case. FYI if you have a Mac, you can select all your shortcuts and drag to the desktop to create a text backup. You can drag the text file back on to bring them back if they disappear there (or if you get a new machine and they don’t come back). Unfortunately doesn’t seem to be another way to do it with iOS!