They open the womb, do the surgery and tuck the baby back in to finish growing.
It looks awful but it is a true miracle that we are able to do this.
If I understand correctly, if the corrective surgery is performed a month or so before birth, you get much better results than if you do it after the child is born.
The repaired spine has time to heal and develop naturally.
Thanks.