From pentagonal geometries to two-dimensional materials