You can do sanctions on items that allow the regime wage wars (weapons and dual-use products), yes, that can work. Or wide sanctions on small countries such as Israel can be a credible deterrent, since it lacks economic depth to find substitutes.
However, wide sanctions on large countries such as Russia or Iran are now proven to be quite ineffective in the long run. Even worse, by preventing the creation of a middle-class, you won't have the conditions to start a democracy later, after a possible regime change.
I know it sounds counter-intuitive, but it's what data shows.
And sanctions don't prevent countries from committing atrocities either. What about the deaths and suffering induced by sanctions? 500k Iraqi children were estimated to have died due to the US sanctions. The architect of the policy told that it was "worth it". Was it?
https://www.newsweek.com/watch-madeleine-albright-saying-ira...