Lens flare? - can this only be solved by replacing the camera?

My Fairphone 3 front facing camera has three green spots on the picture. From googling I think this might be some kind of lens flare, but I don’t really understand what this is. Is this a fault with the camera lens itself? Would I need to replace the camera to correct it or is it something I can change with the way I take photos?

You can get a fully functional used top module of the 1st generation for just a few euros. Just buy one and replace the module.