This will be available in GDAL 3.7.0 (May 2023) per https://github.com/OSGeo/gdal/pull/7165