Biologically, a human child is born with male genitalia, and therefore is male, or female genitalia, and is therefore female.
Gender is a social construct/stereotype. It is as fictional as nonbinary/all the other similar wankery.
The mother is a complete moron. Poor Vauxhall Nova, being stuck with that as a 'parent'