This is the problem given to me on a practice.
I imagine the problem is understandable but if there is anything unexplained, please tell me.
I have tried various things to solve this problem but all of them lead to a dead-end, and so far I don't think I have made any good progress to share.
Here are some definitions I think would be helpful to write.
"local rules: a set of $n.n$ squares which are forbidden in the tiling ($n$ is not a constant and can be any positive integer greater than $1$)",
"non periodic : means there is not a non_zero vector such that after adding the tiling to that vector we reach the same tiling",and the plane we are tiling the plane using $1.1$ black or white squares

You can use a set of aperiodic Wang tiles as a starting point.
Wang tiles are normally depicted with colours, but you can choose to represent each tile by almost any n by n pattern of black and white cells, as long as they are unique enough.
Then enumerate all ways that you are allowed to make a patch of four Wang tiles which form a 2n by 2n square of black and white cells. List all n by n sub-squares of these allowed patches, giving you all the posssible n by n patterns that you will allow in the tiling as a whole. Then disallow all other n by n patterns.
This shows it can be done, though the list of local rules will be very long.