i have a content in my text file, like below

now i want to split all the content which have “:” in that like Mode–>Allowed, Status –> Started etc BSSID is to exempted from this.
can anyone help me about how i would be going through to split content, i tried splitting content based on “:” but i gets Hosted network settings ————– and hosted network status ———- also in the splits.
I’d go with @lc.’s answer but if you need something with more custom logic, try this: