I don't know about other countries but I heard this kind of "punishment" is common for whistleblowers in Japan - what a country of sheep and conformists! A municipal government employee has been quarantined in a private office after embarrassing his colleagues by reporting accidental overtaxing!
Having said that though, this could become a pretty good job? 😄
https://www.asahi.com/sp/articles/ASN6974L8N69TZNB00V.html?iref=sptop_8_06