That's what happens when we don't follow the basic rules of gambling. But I think you have learnt your lesson.
Most of us have faced this because of the uncontrollable urge to recover the money we lost in the previous bets.
Thus we end up using all our money to recover the amount we used since the start of gambling.
But it's better to limit our losses for the day and come back another day if we are losing a lot on a particular day.
Controlling the emotions is where many fail and hence lose all their money.
The best lesson that will really sink is the one that will hurt us in OP's case, it's his pocket and of course, his motivation because he needs to work hard to pay the debt and the interest, this is money that you can't afford to lose, this is the kind of situation where no gamblers want to be in, it's ok if it's your own money but this is not your money and it is incurring interest.
Yes, it will continue to haunt OP since he needed to pay the debt and possibly that additional interest, not easy to forget as he will always remember that mistake that he made while playing the game, in most cases, gamblers who can't move forward will be more aggressive in trying another shots and ended up losing more.
It's better for OP to move on and try to forget this bad fate that happened to him. Gambling is not a good place to try winning
decent amount of money, even you are just trying to enjoy and be entertained if you don't have good control, you'll end up losing
big amount of money.