That's not possible because as per knowledge the mates don't recognize the face name they only knows the face ID which is generated by solidworks in the background.
It is possible, but you will have to create reference geometries (planes, axes, points etc..) on part/sub assembly (faces, temporary exes, vertexes etc) and name them. when you replace the part in assembly it'll match named ref geometry from new part for mating.
Below is what I've for illustration. I've 2 parts (part4 and part5) with 3 named ref geometries(note that the names match). I've mated part4 with an another part using these ref geometries in an assembly. When I replace the part4 with part5 SW will automatically match the ref geometries without any error for mating.
if the name is changed/doesn't exist/it refers to different type of entity it'll throw error..
another option could be to create a subassembly "template" mated with plane. axes, etc. to the main assembly.
You can put the new part in that subassembly. Save the subassembly "as copy" to a new name and when you replace the subassebly in the main assembly all the mates will be kept, as the reference IDs are the same.
The only problem is that you have a subassembly with one part, but you can hide children on BOM and it will be treated as part.