Welcome to hcm.
THIS IS TYPICAL OF THREAD WORM INFESTATION.
He needs anti- parasitic agents to get rid of it.
Except good hygiene, there is nothing special to be done at home for prevention.
Also, it is wise to check with a doc as vomiting
is not usual.