:welcome: to iBoats . . . .
Is the flex line installed something like this?
.
.
Looks like you got to disconnect the line from the surge brake master cylinder, and then from the closest line coupler on the frame in order to pull the flex line out to replace it . . .