Only Joseph’s name appeared as the son of Jacob (Matthew 1:16) and as the son of Heli (Luke 3:23).
No where in ANY of the canonical 4 gospels or the Acts or any of the NT letters stated who were Mary’s parents were.
So none of canonical New Testament texts stated Mary’s father.
Judging by Luke 1, a kinswoman Elizabeth, mother of John the Baptist, was a descendant of Aaron (Luke 1:5):
The relationship between Mary and Elizabeth would implied that Mary too was a descendant of Aaron...something that some modern Christians seemed to blindly ignore, which apparently includes “you”.
Some translations referred to Elizabeth as her “cousin” like KJV, while others referred her as her “relative”.
So no New Testament sources stated who was Mary’s father.
But there was non-canonical source from the Apocrypha that do narrate her birth, childhood: the Gospel of James.
It apocryphal gospel was written in the mid-second century CE. We know it was written in the 2nd century because Clement of Alexandria mentioned
Like the 4th gospels of the 1st century CE, we don’t know who was the real author to the gospel of James. The gospel was attributed to James, Jesus’ half-brother.
It doesn’t matter if the gospel of James wasn’t “canonical”, it is still a source that the early church did accept.
Anyway, it is in this apocryphal gospel that we see that Mary’s parents were Joachim and Anne, and both were considered saints by Catholic Church, the Greek Orthodox, and in the Syriac church and Coptic church. That’s how influential this gospel was, despite it being rejected by the Protestant sects, but the Protestant churches did start until about a thousand years later.
Referring Mary’s father being “Heli” (Luke 3:23) don’t exist in any sources other than from interpretive commentaries from the 20th century, eg New Advent Genealogy of Christ (1909).
I am talking about early sources, but you, as well many Protestant or born-again Christians, are relying on apologetic interpretations of the gospels from the 19th and 20th centuries.
Do you really think I care what an American pastor Reuben Archer Torrey think about?
Torrey has taken the gospels out-of-context. I see no rationality in accepting making some imaginary and mental contortions of claims about Mary’s father and genealogy, who blindly ignore sources that do exist.