Key Takeaway: Just as Scripture makes us to say that God is not a body (John 4:24), and therefore hands, feet, nose, ears, eyes, etc. are to be understood metaphorically, so also bodily passions/emotions are said of God metaphorically, such as wrath, sorrow, anger, fear, joy, pity, compassion, mercy, etc.
Genesis 6:5-7 And God saw that the wickedness of man was great in the earth, and that every imagination of the thoughts of his heart was only evil continually. And it repented the Lord that he had made man on the earth, and it grieved him at his heart. And the Lord said, I will destroy man whom I have created from the face of the earth; both man, and beast, and the creeping thing, and the fowls of the air; for it repenteth me that I have made them.
St. Thomas, Summa Contra Gentiles, Book 1. C.91 Love is the source of all the emotions. For joy and desire are only of a good that is loved; fear and sorrow are only of evil that is contrary to the beloved good; and from these all the other emotions arise.
St. Augustine, Eighty-Three Different Questions, Question 52 ON THE SCRIPTURE: "I AM SORRY THAT I HAVE MADE MAN' To raise us from the earthly and human meaning up to the divine and heavenly, the divine Scriptures have [themselves] come down to those words which even the most simple customarily use among themselves. And so those men through whom the Holy Spirit has spoken have not hesitated to employ in those books, as the occasion best demands, names of even those passions which our soul experiences and which the man who knows better already understands to be completely foreign to God. For example, because it is very difficult for a man to avenge something without experiencing anger, the authors of Scripture have decided to use the name wrath for God's vengeance, although God's vengeance is exercised with absolutely no such emotion. Again, since husbands are wont to protect the chastity of their wives through jealousy, the Scripture writers have used the expression the jealousy of God to indicate that providence of God whereby he admonishes the soul and seeks to prevent its corruption and, as it were, its prostitution through following after various other gods. In the same manner they also use the expression the hand of God for that power whereby he acts, the feet of God for that power whereby he perseveres in sustaining and governing all things, the ears of God or the eyes of God, for that power whereby he perceives and understands all things, the face of God for that power whereby he manifests himself and is known, and so on. The reason for this is that we, the people to whom this word comes, are accustomed to working with our hands, walking with our feet, going where our mind directs, perceiving physical objects with our ears and eyes and other bodily senses, and being recognized by our face; and the same holds true for anything else which comes under a kind of rule like this. Therefore, in accord with this rule, since we are not easily accustomed to changing something begun and to turning to something else, except with regret, and although Divine Providence appears to observers of clear mind to administer all things by an absolutely fixed order, nonetheless, in a manner most suited to insignificant human understanding, those things which begin to be but do not continue as long as it was hoped that they would continue are said to be stopped by a kind of regret on the part of God.