Get status from lock

I am using a tool to get status from my lock.

vsure password get lock

It returns following:

        status: locked
        changeAllowed: True
        secureMode: False
        image: locked
        disarmed: False
        operational: True
        location: Huvudentre
        date: Yesterday 23:49
        label: Locked
        type: DOOR_LOCK
        id: XXXXXXXX

I just want to capture the word after status:
How do i do this the best way.


I solved this in a bash script:’

grep -oP '(?<=status: ).*'