Hello, my name is ***** ***** I am happy to help you today.
If the reason you have not been promoted is your pregnancy then that amounts to direct sex discrimination contrary to the Equality Act 2010.
You should raise a grievance about this and lodge a claim in the Employment Tribunal. Your employer cannot take action against you for raising this issue as this would amount to victimisation.
The entire purpose of the maternity laws is to protect women from this kind of discrimination. It is appalling that this has happened.
If you have any further questions please do ask. If I have answered your question I would be grateful if you would take the time to rate my answer. Thank you and all the best.