The reverse is true to tho. Some attempt suicide- regret it then-- but then attempt suicide again later.
It depends on the reason. Is life shitty? Just lost your child? Just got fire?
Or is your brain just shitty? Constant suicidal impulses even tho life is going well? On a drug that enhances those impulses? Always in pain? Always depressed regardless of medication? Always feel like life is pointless even when nothing is wrong?
Sometimes the problem is chemical and there is little we can do to help the people. Sometimes, it's a permanent solution to a temporary problem and we can help those people.
And as you say, sometimes attempting and really facing death makes the person realize they don't want to die.