From what I have read, it seems that the role of the magi or wisemen was to serve as a synmbol of the gentile acceptance of Jesus as the Messiah or developed even further the “Christ”.
Matthew’s gospel in a way bookends this understanding. In the beggining of his gospel the gentile acceptance of Jesus as the Christ is found in the persons of the magi and at the end of his gospel he completes this with the centuruion’s proclamation, “Truly, this was the Son of God”. Thus from the start of his gospel and at its finish we find that Christ Jesus is the Messiah of all ‘nations’ and not just the Jews and would be accepted by all.
I think this understanding is also reflected in the liturgical life of the Church through the celebration of the feast of the Epiphany especially in the readings from Isaiah - Chapter 60, Paul’s letter to the Ephesians - Chapter 3 and the Gospel reading from Matthew Chapter - 2 (I did not include the verses for these readings because I think for personal meditation reading the who chapter might be more beneficial).
I hope I added something worthwhile to this thread.