Education and Training Act 2020, s 36
You have to go to a registered school until you are 16 years old, even if you are pregnant or have a baby.