We love Sharm, but be warned that most of the beaches are a bit treacherous for a small child, because of the coral reefs in the red sea most of the beaches have razor sharp rocks with jettys going out into the sea so that bathers/snorklers can avoid the rocks and use the jettys to access the sea, but this often means jumping into deep waters, good for strong adult swimmers but certainly not for the fainthearted or children.
There are some beaches, however, that are safer but these are few and far between and you will need to check this out first. We used the 'Terrazina' beach when we went a few years ago and it is a bit expensive to use for the day but would be ideal for small children in that it is a manmade beach using lots of soft sand.
Also Sharm is a long way from Cairo where the pyramids are and I feel that this would be rather long journey for a small child.
Am sure, however, that most hotels will have great facilities for children, and would advise enlisting a babysitter so that you can go to the pyramids without worrying that your child is over-tired, too hot, hungry/thirsty etc.
Hope that this helps.