Can I Stop My Ex Coming Into The House UK?

Does my ex have any rights to my house?

.

How do I get my ex out of my house UK?

Can I lock my ex partner out of the house?

Who gets to stay in the house during separation UK?