I think this is very fertile ground for Star Wars, and it’s weird that such a thing has barely ever been addressed in the films.
I recall that one of my ideas for a prequel rewrite involved Anakin’s spouse aiding in an ill-fated droid liberation movement, which would have died when she did. However, the sequel trilogy is as you say the ideal time for such a story, as it seems that this is an obvious injustice and likely one of the most visible ones after the defeat of the Empire and the return of the Republic.