“Those who have not menstruated” means any woman who is yet to have a period.
Who says that the waiting period is to determine that she isn’t pregnant? If that is the case, then why are there many different types of waiting periods. Just to add the pregnancy part is part of the ruling, but not the reason for the ruling.