The only thing that can possibly be in metadata is the camera's record of where it put the focus points. And keep in mind that any camera's autofocus will miss quite frequently.
As for someone saying "this is in focus and that is not", that's just good eyes and experience.
You can of course use filters in Photoshop (like e.g. high pass or find edges) to exaggerate high frequency detail and visually determine what looks sharpest. But zooming in to 1:1 is just as reliable. With modern high resolution sensors (36 - 60 MP), the plane of critical focus can be paper thin, even with wide angle lenses. The term "depth of field" doesn't really apply anymore: it's either in focus, or not. So very often you simply have to decide when it's enough in focus.
Mirrorless systems have an advantage here: autofocus is measured directly off the sensor, not indirectly by a separate phase detection sensor. So no fine-tuning for each lens is necessary, and it's usually more accurate with a higher hit rate.