UnityEvents are generating lots of garbage

Internally, it seems that UnityEvents are holding an instance of type ArgumentCache that performs this logic on serialization / deserialization:

When profiling, i see these generate GC allocations (all due to performing Regex replacements):

Generally, this should only happens once when displaying the object, but in our game, we have different scenes added and destroyed dynamically (happens many times during a play session), so this means that we pay for this cost every time, which increases the GC that is performed.

I really think this can be done in a better way, has anyone else run into this ?

@Tim-C @phil-Unity Any thoughts on this.
Not experienced this myself yet though.