Whether it is ACEScg or Raw is the same in that case, it results in the image being read without performing any conversions because the working space of the ACES OCIO config is ACEScg. The OCIOColorSpace node assumes that you were using sRGB textures in Substance Painter, if you are using ACEScg one, then you must change the input accordingly!
Cheers,
Thomas