See https://learn.microsoft.com/en-us/office/dev/add-ins/overvie....
Note: this is in the context of 'programmatically extending Office/M365', I don't think the OP was referring to COM in general.
COM is at the base of WinRT, which is pretty much _not_ deprecated.