tl;dr: Regret is an atavistic mechanism which is painful and largely useless. We have better tools to guide our actions. Regret doesn’t depend of what you do: it’s a habit of mind. Ditch it.
Look around and you’ll see fellow human beings wallow in regret.