Confusion regarding the Shape of XeF4
The shape of $\ce{XeF4}$ is indeed square planar as you mentioned it is so because:


The lone pairs are kept in anti position to minimise repulsion between them and also from the electrons in fluorine atoms. Keeping the lone pair anti results in 4 empty positions which are filled with fluorine, giving rise to a square planar shape and octahedral geometry.


Please fell free to comment any doubt, and give the tick if you are satisfied.