New Debug Component - How to get Reset reason & information seperate?

Hello,
there is a new option in ESPhome Debug Component
the output on the Web Gui looks like

Device Info	2022.2.1|Flash: 1024kB Speed:40MHz Mode:DOUT|Chip: 0x00b59d10|SDK: 2.2.2-dev(38a443e)|Core: 3.0.2|Boot: 31|Mode: 1|CPU: 80|Flash: 0x0014605e|Reset: Software/System restart|Software/System restart

I am only intrested in the Reset / restart reason

How to seperate this?