This is quite good even by European standards. If you were paid 4.5 months because the law said so then it isn't harmonized, because in my EU country it is only 3 months notice afaik.
Also not sure if the Meta severance applies to contractors as well, but many engineers work as contractors by which they of course opt out of worker protections.