Extended phase space thermodynamics of regular charged AdS black hole in Gauss–Bonnet gravity