People pleasing can be a difficult habit to break, but it is possible to do so with some self-awareness and dedication. The first step is to recognize when you're people pleasing. Pay attention to your behavior and notice when it comes from a place of wanting to make someone else happy or if it's something you truly want to do. Once you identify that pattern, challenge yourself and practice saying "no" to requests that don't align with what you really want. You can also set boundaries to prevent yourself from feeling obligated to do things out of guilt or fear.
Finally, work on building your self-confidence and self-esteem, and remember that you don't need to please everyone to be loved and accepted.