How to automatically enable ethernet tethering on Android 11?
Ok, got it working with Interact block in Automate.
It has a nice inspector I used for capturing an ethernet tethering tap event.

Reproducing tap only works with the screen unlocked so I used Tasker with AutoInput plugin to unlock the screen on the cable plug.