The Matrix films completed the naming convention that was always in play for Trinity, which had previously predicted her death in The Matrix Revolutions. The Matrix films always leaned into thematic intentions behind the series, which frequently used religious names and imagery to underscore the meaning of the story. This is particularly true with Trinity. Played by Carrie-Anne Moss, Trinity is one of the franchise's most important characters. She serves as Neo's primary love interest and ally in the battle against the Machines.
https://screenrant.com/trinity-name-meaning-matrix-death-resurrections-return-explain/