This is the accepted timeline, but so much is unknown. This is just a theory. IMHO, it was rediscovered. The archaeologists are as slow to accept things, and artifacts point to very old stories. Göbekli Tepe points to something older. It hasn’t even been fully explored yet. It is far more advanced than they thought would be possible. The archaeologists have their heads in the sand. Much older things are out there waiting for us to discover. Some is underwater, and underwater archaeology is very limited.
There were paintings on cave walls that might be considered proto writings, but the earliest writing was probably used for counting things. Probably invented by protobureaucrats
Here we go - writing is racist.