We don’t know if this person was forgiven or not. If he went to Confession or not.
Another thing is to read about the rules of the Catholic Church about suicide. Most people who commit suicide are mentally ill and not capable of a rational decision.
One cannot receive prior absolution for a sin he intends to commit.