The story of “Israelites” escaping from Egypt is an allegory.
Based on biblical tradition, the covenant forming the “People of Israel” the (B’nai Elohim בני אלהים) was made at Mount Sinai about three months after the Exodus. Prior to Moses descending from Mount Sinai, there were no “Jews”. To the contrary, there is archeological evidence that the pyramids were built by paid labourers.
While the Exodus is a foundational story of emerging monotheism, there is no evidence of a mass escape from Egypt.
Historians inform us that Israelites emerged from indigenous Canaanite populations and that the stories of Egyptian slavery were written much later to establish a distinct religious identity.
The Israelites did not easily or immediately escape the cultural influence of Egyptian belief in polytheism. The so called ten plagues as presented are judgments against continued belief in the pantheon of Egyptian deities.
Moses leading the people of the covenant for forty years from the Nile Delta (Egypt) to the Promised Land (Canaan) is extremely unlikely. The distance is relatively short—a few hundred miles. It would take about two weeks to traverse on foot, or a few months with a large, slow-moving caravan. It is much more likely that the 40-year journey was to wait for older people to die off, so that young people free of polytheism would enter Canaan, the future land of Israel.