Automation to turn off lights at different times based on daylight savings mode

Yeah, I think maybe you should think a bit more about what really determines when the lights should go off. I like the way @Mutt put it: “if you had to flip the switch every night … what would cause you to turn them off?” This might help make it clear what should trigger the automation.

But, in the meantime, to “brute force it” the way you wanted, you could do this:

- id: driveway_OFF_3h_after_sunset
  alias: "Driveway OFF - 3h after sunset"
  trigger:
    - platform: sun
      event: sunset
      offset: '03:00:00'
    - platform: sun
      event: sunset
      offset: '05:00:00'
  condition:
    condition: template
    value_template: >
      {% set dst = now().timetuple().tm_isdst == 1 %}
      {% set offset_hrs = trigger.offset.total_seconds() / (60*60) %}
      {{ dst and offset_hrs == 5 or not dst and offset_hrs == 3 }}
  action:
    - service: homeassistant.turn_off
      entity_id: switch.driveway_68