Catalysis of the reaction glutarate + 2-oxoglutarate + O2 = (S)-2-hydroxyglutarate + succinate + CO2.