Self-regulation is the act of governing your behaviors, thoughts, emotions, choices, and impulses in a way that contributes to one's own well-being and the well-being of others.
Self-regulation is a skill that can be learned and practiced.
Here's an article from Harvard Health Publishing:
Self-regulation for adults: Strategies for getting a handle on emotions and behavior
Here's an article from Positive Psychology:
What is Self-Regulation? (+9 Skills and Strategies)