And it repented the Lord that he had made man on the earth, and it grieved him at his heart.
(Genesis 6:6 KJV)
The verse doesn’t say God repented the same way a person does when turning from errors/sins. Like St. Thomas Aquinas pointed out, the Bible gives descriptive qualities to God that are only applicable physically to humans, such as a body, sadness, etc, to put it in terms for the reader to be able to understand. The context here implies nothing more than God’s displeasure at mankind’s sins.
