Spend quality time alone
The solitude that is productive may increase your confidence and ability to trust yourself. You may develop a sense of your own needs, goals, and desires by spending time alone, away from the pressures of others. When you've mastered these, you'll be able to effectively express your boundaries to the people in your life. It's possible that you'll have to get over the nagging feeling that spending time alone is "selfish".
Remember that just recharging your batteries can help you become a more calm and confident person in the long term, which will benefit others in your life. It may take some time to find the solo activities that suit you best: meditation, exercise, and time spent outside are all excellent choices.