Mucus plug

At what point in pregnancy does it stop regenerating itself once it’s lost?