You feel regret when you acknowledge that you acted suboptimally, possibly only in situations where you could reasonably have expected yourself to be better.