The word for this chapter is “just”. They are to have a just society. Previous chapters could have the words “God fearing” “humble” “caring”.
This is about the refuges cities. We’ve heard of them before but the reason is drawn out more, that it is about stopping the shedding of innocent blood. The measures discourage escalation of revenge killings between tribes and families.
Then detailing that the legal system is to represent a genuine quest for truth, with multiple witnesses and thorough investigations of facts.
It’s so familiar these ancient texts. Despite lots that is culturally remote, the core of what we still regard as an ideal society is being laid out in God’s word here. No wonder there were times when Israel fell in love with the law.