Make the béchamel sauce
In a saucepan, melt the butter over low heat to make a roux.
Add the flour and whisk until well combined.
Cook for a few minutes, stirring constantly. Once the butter starts to bubble, gradually pour in the milk, whisking continuously. Allow the sauce to thicken as you add the milk.
After 10–15 minutes, once the béchamel sauce is thick, smooth, and creamy, remove the pan from the heat. Add the grated cheese and stir until completely melted.
Season with pepper and nutmeg, and add salt if needed. Mix well and set aside to cool.