Emergence of fractal geometries in the evolution of a metabolic enzyme