How to deal with shadow dom/roots [selenium]

How to access elements which are within ‘shadow roots’ and interact with them?

an example of this is present in “chrome://settings/” under the element (selector) “body > settings-ui”