you can't rebuild with just 2 people, perhaps not even if they had such perfect genes that incest didn't cause any trouble.
I remember a calculation being made years ago....if I look around there are some neat articles on the matter
https://www.bbc.com/future/article/20160113-could-just-two-people-repopulate-earth
The article is a lot longer and there are many that tackled this subject.
Is a mixed bag, at least a 100 people would be needed and many many children from each woman.
I hope is something different than this, or that the woman is the cause of the apocalypse.