I think its called entopic phenomenon . google it.
1. See an ophthalmologist to rule out disease.
2. You likely are becoming aware of entopic phenomena. Read the section on that at wikipedia.
JCH MC
I to see stars and flashing lights. The stars are pin point of bright lights. Mostly there all the time especially when i look at the sky. I have diabetes type 1 due to removal of 80% of my pancreas. I just had a check up at the eye doctor for a check up and a base for my diabetes. I know i have ocular migraines. These are not the same. I,m 48 and suffer from chronic panceratitis, gastropararises, hypothyriodism, and take many meds. I wander if all my meds. could be causing the stars or something else. I've had many x-rays and cat scans but not for this reason but nothing has come up about them.