The problem with the usage of apologies
You know, you can give the most sincerest apology you've ever given out and it still wouldn't mean a thing.
If you don't take accountability for your actions afterwards, then you can't expect people to think you actually mean your apology because you're proving to them that you don't really care that your past actions were hurtful. You just want them to shut up and get over it.
People are not going to turn a blind eye just because you said sorry. If you keep doing the same thing you said sorry for repeatedly, then the apology is just performative and less genuine. At this point, you're just trying to get the recipient off your back so you can keep doing it all over again.
And no, feeling any sort of actual remorse doesn't cut it either. If it's hard to break out of that harmful habit, then go seek counseling or something. Make an actual effort to break out of it, don't just sit there and hope the problem would just fade on its own.
If you're going to say sorry to someone you've hurt, mean it and take accountability for whatever you said or done. Don't sugarcoat your actions or try to pin the blame on someone else.
But depending on the scenario, a sorry can't really fix the damage that was caused and you need to be alright with it if someone doesn't forgive you.
It's not up to you or to anyone else to make someone forgive you. Getting upset about it will cause even more damage and more reason to not be forgiven. That will be on you.