2) Move to the
3) Pick up the Sanity token.
4) Move to the
5) Attack Dan.
6) Pick up the Knowledge token.
7) Move south, exploring. (-2 move)
Yes, that would be a legal move-set. You'd need to re-confirm everything after the "Attack Dan" step once the attack is fully resolved, in case the results of the attack change your mind.
If you want to do that, please confirm and make your attack roll.