If it's a party wall, which means the boundary line runs through it, your neighbour is entitled to use the wall in their extension, but they may need to serve a notice enclosing on the wall and for adjacent excavation. If, however, the wall is wholly on one side or the other, the Party Wall Act grants no right to use.