ASN.1 is good though. What sucked was everyone implementing their own serde tooling. In another, better world we'd have consolidated around ASN.1 DER and not wasted all that time and energy with XML, JSON and so on.
If it was really that good there'd be plenty of great open source implementations and tools by now, but in reality nobody wants to use it. Note that protobuf didn't have this issue.