Hi there,
Your question is similar like this one: Transform on fields of a nested object, and the background document is this: Nested aggregation | Elasticsearch Guide [7.12] | Elastic
As Hendrik answered in that topic , we don't have a date when to support it at this moment, unfortunately.
Cheers
Wei