File Output node ignores inputs and exports all render layers
I guess the file output results were overridden by the Composite node, so I deleted the Composite node and changed the file type to OpenEXR Multilayer from the node properties rather from the render settings tab. Now it works as expected.