@IG-89 - The knight also needs to be able to get to d2 because of kf3. nf5 allows kf3 and stopping the pawn is no longer possible. That puzzle is correct.
@Bishop_pear - Sometimes Stockfish will prune a valid line at short depths (which the puzzle generator algorithm uses). It's incredibly rare, but it does happen.