I'm reverse engineering / hacking a Chinese board which has the footprint for this regulator which i want to replace. I am not quite sure what the package is though, I'm certain someone here does.
It's a D-Pak aka TO-252.
The ST datasheet for 78M05 shows this as a standard package for this part.
Looks like D-PAK (TO-252AA)
Dimension E should be 6.5mm, and e ~2.3mm