If you want to do a Sobel test for assessing the significance of a mediation, don't do it this procedure is considered old fashioned.
From the website of Andrew Hayes (who wrote the SPSS macro for Sobel tests):
"If you intend to use this macro merely to implement the "Baron and
Kenny" steps to mediation analysis or the Sobel test, I advise you
against this, for bootstrapping has become one of the more highly
recommended approaches for inference about indirect effects."
Instead use the bootstrap approach, either implemented for SPSS by Hayes, in R or SPSS by Kristopher Preacher (Preacher & Hayes have developed most together), or use the R mediation packahe by Kosuke Imai and colleagues.