וַיַּ֥עַל מֵעָלָ֖יו אֱלֹהִ֑ים בַּמָּק֖וֹם אֲשֶׁר־דִּבֶּ֥ר אִתּֽוֹ׃
И Бог пошел от него в том месте, где Он говорил с ним.
Ibn Ezra
G-d forbid that Hashem should repent! No, the Torah is merely speaking in a language that human beings can understand, just as it does when it says "He went up" (Genesis 17:22) and "He went down" (Genesis 11:5), and "God will be made happy by His creations" (Ps. 104:31). And also, "He was grieved in His heart" - and behold Samuel also said "The Glory of Israel does not deceive or change His mind" (I Samuel 15:29) And the text says "I repented". And there are those who explain this as an expression of communication, and this is unnecessary.