I've heard from a few different people that it's harder to sex at the weaning age, not impossible.
It's best to separate any rats when they are weaned to prevent pregnancies. Which I believe for ASF's is at 4 weeks. Any later and the mother may again become pregnant by her son, or any females from the same litter may become pregnant by their brothers.
Just saying.