It can be helpful to have a resolution to "not" do something. It can be even more effective to couple it with a resolution to "do" something., For example, one might resolve to learn a new skill like card playing (bridge, canasta, pinochle), board game (chess, risk, monopoly), physical activity (tennis, swimming, volleyball), or something else that can both be a satisfying activity as well as an opportunity to meet new people.
Often thoughts of suicide drive out other thoughts and plans such that life can get even darker. Pushing back against a gathering gloom can help ne see themselves as more in control of their life. Don't worry too much about regrets, they indicate that we are learning. We are all born helpless, ignorant, and selfish. Given our starting point it should be expected that we will do things that are regrettable.
None of us are perfect people, but we always have the option to become better people.