Why was Jota goal not offside - and does law need changing?

Did Liverpool's winning goal in the Merseyside derby highlight a flaw in the offside law?

Why was Jota goal not offside - and does law need changing?
Did Liverpool's winning goal in the Merseyside derby highlight a flaw in the offside law?