Opening a Movie Render Queue Multi-layer EXR file in Python or C++

We exported a multi-layer EXR file from the Movie Render Queue in UE5. We were able to use a Photoshop plugin for Cryptomatte (EXR-IO) to see the layers correctly. However, does anyone know of a C/C++ or Python way of directly loading in code these multi-layer EXR files and extracting layers? Thanks

We were able to use an external python library to parse the loaded exr. Nuke has a cli to work with exr :).