From what I’ve read, The Matrix wasn’t created as a trans allegory, it’s just that you can apply the fundamentals of its story to many concepts. One of the most popular interpretations happens to be gender identity because its creators transitioned years after the original trilogy ended.