The 2e AD&D Ravenloft module Touch of Death has part of it in a pyramid.
I seem to recall a short scene in one in Feast of Goblyns (another 2e Ravenloft module), though it is not a big part of the module.
I know the 2e Ravenloft adventure in Nova Vaasa deals with mummies though I don't remember if it has pyramids per se, though probably. The title is something about moons I think.
I know there is a BECMI D&D Hollow World sourcebook for Nithia their Egypt analogue which has mystic pyramids as a feature, I think there is a module that goes with it as well.
Fast Forward Entertainment has Tombs of Ra for
3e with a series of Valley of the Kings type D&D tombs.