This is a fractal called a Sierpinski Carpet, which is a hypothetical fractal, of which each square has 8 other squares around it.
This is not infinite. Just an illusion. Image from Wikipedia Sierpinski fractals were made by Wacław Sierpiński (1882-1969)