The number of d-electrons in Fe2+ (Z = 26) is not equal to that of:
p-electrons in Ne (Z = 10)
s-electrons in Mg (Z = 12)
d-electrons in Fe (Z = 26)
p-electrons in Cl (Z = 17)
Number of d electrons in Fe2+ is 6
Whereas number of p-electrons in Cl is 11.