Life is a never ending series of forking roads not taken, you take some and you leave others unexplored, there's an near infinite amount of things to learn and we only have so much time to learn them. It's not feasible to worry about it.
I presume most people learn to deal with that when they're like, twelve, or something. Otherwise you just live with constant regret and FOMO.