None of the authors to the gospels - the actual authors - were ever named, nor known, as the oldest fragments revealed that these were composed anonymously.
Plus, none of the authors were contemporary to Jesus, and therefore not eyewitnesses. The names that are now attributed to Matthew, Mark, Luke & John, were applied to those respective gospels, by the 2nd century church.
Not eyewitnessed, take for instances, the gospel of Matthew in regarding to the narrative, seem to focus around Joseph’s point of view (just as the gospel of Luke seems to centred around Mary). How could the author have known the birth of Jesus based on Joseph’s view, since Joseph have died long before Jesus started his ministry?
Plus, how would the author known about what Herod the Great or the 3 magi have said, especially as Herod died in 4 BCE, and it would be highly doubtful that the 3 magi were alive for the author to met them to tell their sides of the story?
I don’t doubt that Jesus was a real person, but the details of the gospel narratives about Joseph & Mary at Jesus’ birth seemed to be created by these 2 authors, hence they are unreliable sources.