Any electricians in the house?

Check your power company rules.

They typically have a published public document like an Electrical Service Requirements. And search their website for “Generator switch”

Rules here are a mechanical switch that can only connect between Power Company OR generator. Never both at same time. Installed after the meter.