Mix the butter with the flour, add the eggs, salt and sugar. Let it rest in the fridge for about 30 minutes. Roll out the shortcrust pastry to 3⁄4 mm thick, place in a cake tin and prick with a fork.
Cut the bacon into strips, blanch them in boiling water, let them dry out slightly in a pan, then add to the cake tin on top of the pastry base.
Boil the milk and the cream with a pinch of nutmeg, beat the eggs and the yolk with salt and pepper, add the milk and the grated Pecorino Toscano PDO, mixing well.
Pour into the pan and bake at 180°C for 30 minutes.