Being pleased that Allah enabled one to do good is different from assuming superiority over others. Similarly, remorse is beneficial when it leads to repentance, stopping the wrong, and restoring another person's right where necessary.
Example 1: Returning someone’s property may bring moral satisfaction; it should not become a reason for arrogance.
Example 2: If you speak harshly to someone, regret should lead to an apology and change of conduct.
حَسَنَةٌ (“good deed”) contrasts with سَيِّئَةٌ (“bad deed”).