First thing to realize is that the pyramids are never mentioned in the Bible. The reason for that is very simple. By the time period of Exodus, the pyramids were already a solid thousand years old and becoming ruins. They were built ~2600 bc. Exodus is usually dated to some point between 1500 bc- 1300 bc. They're different historic epochs entirely. It's like claiming that Leonidas built the Colosseum.
And just to kill this idea entirely, the Egyptians more or less stopped building pyramids in the centuries after Giza. Nearly all pyramids were build only during the Old Kingdom (before ~2100BC), and anything after this date is usually not must beyond a foundation and of an inferior quality and size. The Pyramids were overall built within a 500 year range of Egypt's +3000 year core history. They were the conception of Imhotep for his Pharaoh Zoser. Zoser's descendants experimented with the design. Sneferu perfected it and made it a science, and then Sneferu's children build Giza off his scientific data. After Giza, the art of Pyramid building faded, and not many examples remain. Egypt began to collapse until the Old Kingdom ended, and Egypt reorganized in such a way that the Pharaohs did not have the political clout to build them anymore. Just to point this out, the largest pyramids at Giza are the oldest. The smallest are the youngest. The reason why the last pyramid was smaller was because the Pharaohs were loosing their grip on command economies. Also bare in mind, slavery was not a greatly defined concept in Egypt at this time. The Pyramids were built by laborers who had seasonal crops. When not in season, they built.
All that aside, I'm a fan of the idea that the Israelis were just one of many Semitic tribes in Egypt. The Hyksos make a good match to the description of the events in the Bible. In the Bible you see Joseph come to rule a large part of Egypt and invite his clans over to rule with him. Likewise, the Hyksos came and flooded in inviting more of their people to rule. In the Bible the power becomes a point of contention, and the Israelis are overcome and turned to slaves. Likewise, the Hyksos became unwelcomed guests and were overcome and either enslaved or kicked out.
What these slaves built were not pyramids, but temples. After the era of the Old Kingdom, the priests came to rule the land along side the Pharaohs. The priests were akin to prime ministers with the monarchy of the Pharaoh. The priests began having greater control over national resources and put them to building temples.
It is extremely likely that the events in the Bible pertain to just one tribe of Hyksos who came into Egypt and were kicked out and repelled as well.