Is Paul reprimanding the Galatians for trying to be saved by the law, or sanctified by it?

I was reading an excerpt about Galatians 3:23-25 about the word "pædagogos" and it was describing how Galatians is not a salvation issue but it's dealing with a sanctification issue as stated by Galatians 3:3; Are you so foolish? Having begun by the Spirit, are you now being perfected by the flesh?" One of the excerpts points was about the law being a protective barrier for Israel to preserve it by being defiled by pagan beliefs, until the "custodian" (pædagogos) handed them over to the destination they were headed to; to Christ to be justified by faith. Just as the slave (pædagogos) would guard the children until they reached the destination they were meant to reach, like school, or athletic practice. Its an issue I've been struggling with, wether even the least of The commandments is still applicable or certain have been done away with.

A 20 page excerpt that I'll leave below if any of you want to dive into the word "pædagogos" in Galatians 3:24-25 A role slaves played in supervising children until they reached adulthood. Any excerpt or study that you guys would like to site for me to read regarding these issues would be appreciated 👍

This study is by Michael J. Smith of Liberty University

https://digitalcommons.liberty.edu/cgi/viewcontent.cgi?article=1114&context=sor_fac_pubs