I think a lot of people run into this small problem (that you'd expect Apple solved natively) -- receiving .ics files in other apps (ProtonMail, GMail, etc) and not being able to properly import them to the Apple calendar.
Well I tried to build an app only to realize there's a shortcut for this:
https://vadosware.io/post/how-to-import-or-open-ics-files-in-icalendar/