This view of Gentiles is what is being overturned in Peter’s vision.
The issue of clean and unclean foods is trivial compared to the issue of clean and unclean people. Peter is suddenly realizing that the kingdom of God is a whole lot bigger than he had imagined and that the gospel message is a lot more powerful.