Possible memory leak in withTaskGroup(of:) concurrency method (FB9719809)

I am also seeing this behaviour with my application leaking gigabytes of memory on macOS with Xcode 13.2 Beta (13C5066c) since adopting withTaskGrou(of:). My experience seems very similar to the Linux issue here: