What can we know about Mary Magdalene and her relationship with Jesus?

The only mention of Mary Magdalene in the public life of Jesus appears in chapter 8 of the Gospel of Luke. In it it is said that there were women from Galilee who followed Jesus and served him with their own money: Mary Magdalene, Salome and Juana. That is what everything is reduced to until Jesus is seized and Mary Magdalene appears again at his side along with the mother of Jesus. We have only a little news about Mary Magdalene and her relationship with Jesus while he was active, so it cannot be deduced that there was any close relationship between them. What is told after Jesus was resurrected cannot be taken into account by historians since it belongs to the universe of legends. Everything indicates that the alleged relationship of Jesus with Mary Magdalene is quite improbable.