Gas line to appliance seized cannot disconnect
That top nut is the one to undo, it is not connected to the hose but just stuck to it.

You will need to hold the hose and free the nut.

If you do damage the hose you will have to replace it.