In my daughter's AS Philosophy and Ethics course, they are comparing
The Matrix to Plato's
Allegory of the Cave:
Allegory of the Cave Allegory of the cave - Wikipedia, the free encyclopedia Plato's Cave
I'm fairly sure Plato would not have been influenced by Buddism, so I think you can take whatever you like from the film.