Was Mary a sinless perpetual virgin? Well, scripture says that the only person that never sinned was Jesus (Rom 3:23, Heb 4:14-15, & 2 Cor 5:21), and it also implies that Mary had children with Joseph after Jesus (Acts 1:14), and it specifies that they had intercourse after Jesus was born (Matt 1:25). This is a non-biblical church tradition. Believers are only accountable for believing what is written, not what we are told out of tradition.
There are numerous traditions in Christianity that are not from the Bible, and some ideas even contradict what the Bible teaches. This is even true in Judaism, the Talmud records the oral traditions of the Pharisees and includes things never mentioned in the Old Testament (the Tanakh). In Mark 7:1-13, Jesus called and scolded the Pharisees for teaching man-made traditions, like “Netilat Yadayim” (ritual handwashing) as if they were commands from God. Therefore, Jesus is against glorifying traditions that are not instructions from God as found in Scripture. Only scripture is inspired by God. Consequently, Christians should avoid accepting things as if they are backed by biblical authority when they aren’t explicitly stated in scripture or supported by physical historical evidence, especially if they are contradicted by scripture.
Jesus had brothers named James (Jacob), Joseph (Joses), Judas (Jude), and Simon, as well as sisters. His siblings are all mentioned along with his mother, Mary, in Matthew 13:55-56 and Mark 6:3, when the people in Nazareth scoffed at him. His brothers and his mother, Mary, were together with the apostles and 120 believers in the upper room in Acts 1:14. In addition, Matthew 1:25 says Joseph refrained from having sex with Mary until after Jesus was born, so the Bible makes it clear they had sex afterward.
Some say Joseph was a widower before marrying Mary, and his children are from a previous marriage. And while it is possible that he had an earlier wife and children from a previous marriage, we aren’t actually given that information in scripture, so it is speculation. I’m not against the idea that Joseph had an earlier wife and children from her, but I don’t think it is necessary to believe in order to follow the Bible, since it is not in the Bible. Let’s say Joseph did have a wife and kids before Mary, it still says in Matt 27:56 that James and Joseph were Mary’s sons, so she had these specific sons herself, after Jesus. Jude and Simon are not mentioned, so they may not be her children and may be stepchildren from a previous wife. However, James and Joseph were for sure Mary’s children, even if the others weren’t. Some people will take the view that Mary adopted them. If that is true, then why exclude the others? What is so different about these two?
Additionally, since the text doesn’t specify stepsons, biological children are a suitable fit in the context. The concept of a stepmother is only referenced in the Bible three times: twice in Leviticus 18:8 and Leviticus 20:11, and once in 1 Corinthians 5:1. None of these passages uses a literal word for “stepmother,” but rather they all refer to “father’s wife.” Back then, in this culture, there was no concept of “stepmother” that is equivalent to the way we use it today. Women who fit these roles are always only referenced in their relationships with the father, not his sons from another woman. Example: Jacob had 12 children, from 4 different women. Joseph’s mom, Jacob’s favorite wife, Rachel, died after having Benjamin (Gen 35:16-20). Does that mean one of the other women, like her servant Bilhah, her sister Leah, or her sister’s servant Zilpah, became Benjamin and Joseph’s new stepmother? No, they have a mother who is dead, and even if Rachel’s servant Bilhah raised Benjamin, that doesn’t make her his mom. The definitions of family relationships were more direct in that culture than they are in most Western nations today. Leah was simply their father’s wife, and the other women were their father’s concubines, to Benjamin and Joseph.
Matt 27:56 and Matt 1:25 together suggest that Mary had at least two sons. So, there is nothing scriptural that says she remained a virgin after Jesus was born. Meanwhile, Matthew 1:25 states that she remained a virgin until Jesus was born:
Matthew 1:25 (KJV) And Joseph “knew her not” UNTIL she had brought forth her firstborn son, and he called his name Jesus.
Stephanus Textus Receptus 1550: καὶ οὐκ ἐγίνωσκεν αὐτὴν ἕως οὗ ἔτεκεν τὸν υἱὸν αὐτῆς τὸν πρωτότοκον· καὶ ἐκάλεσεν τὸ ὄνομα αὐτοῦ Ἰησοῦν
The word ἕως (heós) is translated as “until” or “til” because, in context, it functions as a conjunction.
Resources:
Greek Lexicon on Matt 1:25
Greek word Heós (ἕως)

Wow so good and powerful. Praise God!