Unfortunately, actual and serious prosecutorial misconduct (and law enforcement misconduct generally) is very, very rarely punished.
There are various reasons why this is so, but the message for many years has been very clearly sent that prosecutors and law enforcement can get away with nearly all of their misconduct without court interference.
True misconduct is rarely “punished” but it is a little easier for a defendant to get charges dismissed. The prosecutors will probably never get anything more than a tongue-lashing at worst.