Whenever I am trying to dispose off a mesh using mesh.dispose(), the material of the mesh is not getting disposed off. I have to first manually trigger, mesh?.material?.dispose().
I have confirmed the scene by logging the scene object and the material PBR is getting persisted.