Do I keep STAB when I Terastallize?
Yes. A Terastallized Pokémon keeps the bonus on moves of its original types and gets the bonus on its Tera Type too. If the Tera Type matches one of its original types, that STAB rises from 1.5× to 2×.
Can a Pokémon Mega Evolve and Dynamax?
No. A Pokémon that has Mega Evolved cannot Dynamax, and in a format that allows both (such as a National Dex format on Showdown), switching a Mega out does not let it Dynamax later. In the main series games the two mechanics do not normally appear together.
Eternamax
Eternamax Eternatus is only a boss form. See the Ditto guide for what happens if Imposter tries to copy it.