To the Jonah quote - it’s using “evil” in an older sense, in the sense of a “harmful deed”, so God could be said to “do evil to sinners”, for example.
In general, God is beyond human perception, but we attribute human characteristics to him so that we may better understand him - better to understand imperfectly than to be awed by his ineffability and lose faith in understanding him at all! So in the Old Testament in particular God is given human emotions - “regret” or “anger” or “sorrow” or what-have-you - but this was just the way the ancient Israelites tried to understand God and the way God chose to reveal himself. Even today we speak of God being “disappointed in” or “angry towards” sinners, but these are mere human words that come nowhere near expressing the mysteries of the divine nature.