Hi welcome to HCM .
What you are experiencing is flashes and floaters
in eye, which needs a dilated retinal examination .
It could be because of ageing/ high refractive error/ other systemic disorders like Diabetes
,HTN/ post trauma or stress
induced too. Keep an eye on your visual status and the size of the floating object and your field of vision as any gross changes in these suggest progressing signs.
Get an appointment with your Retina specialist to find the cause and to avoid anxiety