A regularized extraction formula in the enclosure method