Jesus had given Simon the name Cephas (Peter) when they first met.
John 1:40-42 (ASV)
40 One of the two that heard John speak, and followed him, was Andrew, Simon Peter's brother. 41 He findeth first his own brother Simon, and saith unto him, We have found the Messiah (which is, being interpreted, Christ). 42 He brought him unto Jesus. Jesus looked upon him, and said, Thou art Simon the son of John: thou shalt be called Cephas (which is by interpretation, Peter).
Perhaps you could read the entire passage before isolating a phrase and pretend to turn the entire meaning on it’s head:
Matthew 16:17-19:
And Jesus answered him, “Blessed are you, Simon Bar-Jona! For flesh and blood has not revealed this to you, but my Father who is in heaven. And I tell you, you are Peter, and upon this rock I will build my church, and the powers of death shall not prevail against it. I will give you the keys of the kingdom of heaven, and whatever you bind on earth shall be bound in heaven, and whatever you loose on earth shall be loosed in heaven.”