This just isn't true. They felt exactly the same as OP up until the moment they died. A sudden death is, by definition, something that can not be regretted.
> To that specific individual, it doesn't because they are dead.
I wasn't clear enough. The decisions one makes during their life are affected by whether or not they care about anything that happens after they are dead (any many specifics beyond that). Many people do things whose primary impact won't be felt until long after they are gone. So it isn't true to simply say that nothing matters after the individual is dead.
I'm sure some of them felt some amount of regret in the last, terrifying moments between when they realized that they were going to die and when they finally lost consciousness.