مَثَلُ نُورِهِ كَمِشْكَاةٍ فِيهَا مِصْبَاحٌ. (al-Nūr 24:35)
The example of His light is as a niche containing a lamp.
The image of a niche and lamp does not mean that Allah's light is literally a lamp in a niche. It does not ascribe the material form or mode of a created object to Allah.
It is an illustration to aid understanding. The attribute being explained belongs to Allah, whose attributes have no actual counterpart.