This is underlying problem with promotion culture, I am in a big financial firm, my whole team wants to get promoted every 1-1.5 year. I feel people are not really learning how to write and manage software systems properly due to this.
if you had any written documentation when reporting (at your ex-employer), it might have played out differently i feel (they would have been on hook for any legal notice)