From Gregory Boyd’s God of the Possible:
…it is better to allow Scripture to inform us regarding the nature of divine wisdom than to reinterpret an entire motif in order to square it with our preconceptions of divine wisdom. If God says he regretted a decision, and if Scripture elsewhere tells us that God is perfectly wise, then we should simply conclude that one can be perfectly wise and still regret a decision. Even if this is a mystery to us, it is better to allow the mystery to stand than to assume that we know what God’s wisdom is like and conclude on this basis that God can’t mean what he clearly says.
Amen! :-)