Mary was not unwed. She was married to Joseph.
Now, she was a virgin, yes, but not unwed.
She was unwed at the time of the conception, and she was unwed when Joseph found out about the pregnancy.
Therefore, she was ‘unwed mother of Jesus.’