How Do You Write Eg Examples?

How Do You Write Eg Examples? “The Summer Olympics is composed of a variety of sports (e.g., gymnastics, swimming, and tennis).” “Many genes are involved in neural tube development, e.g., Sonic Hedgehog, BMPs, and the Hox genes.” Note: because e.g. implies that other examples are being omitted, do not use etc. in the same list.