So the law is holy, and the commandment is holy and righteous and good.
Romans 7:12 ESV

It is impossible for any of God’s commandments to be unjust or unholy because they are a reflection of a purely just and holy God. See Psalm 119:137. “You are just/righteous, O YHWH, and your mishpatim/judgments are upright.”