Do I need 2 flows to switch something off at 11pm and on at 7am?

Although perhaps not very maintainable, just using a second action with a delay is probably the most compact way.
So set a second action with a delay, which can be up to 999 minutes (>16 hours).

Yes. Early 2023 model.