Splitting a voxelized mesh?

Hello there,

I’ve sculpted a mesh, and applied the remesh modifier, set to blocks. Now, I have a voxel-based mesh (only cubes). My problem lies in the fact that the remesh modifier merges vertices between cubes, which means that the whole structure is only one big mesh. I would like to split it into unit cubes. Would anyone have a lead on how to do ?

EDIT : I actually thought of another way, but it would require checking whether the intersection between two meshes in not null. Is this possible by script ?

Thanks a lot !