Unable to generate Java code for lookup expression using let

Any tips on how to proceed?
Even without the sort in the lookup pipeline, just trying to hit generate Java code creates an error saying “Unrecognized option to $lookup let”:

Additionally there seems to be this Bug on Compass:
https://jira.mongodb.org/browse/COMPASS-4111

Discussed a few times, see this post.