This is very much still a statutory protection. Absences relating to pregnancy should be recorded separately and shouldn't count towards any reviews or triggers in an absence policy.
If you are subscribed to xpert HR, they have a very good outline of this -
Visit the main CIPD website
Empowering people
A place to learn, debate, and connect
© Copyright Chartered Insitute of Personnel and Development 2024, 151 The Broadway, London SW19 1JQ, UK Incorporated by Royal Charter, Registered Charity No. 1079797