When Jesus said, "On this rock I will build my church," he was referring to Peter which in Greek means rock. Does this mean that Jesus could speak Greek? It's a long way from Aramaic!
Jesus spoke Aramaic. The play on words in Greek -- "petra" = rock; "Petros" = rendered "Peter" -- picks up on the word play in Aramaic ('kepha").