When i use nano in the terminal without enabling tmux, it shows the path for the brew version

nano is an alias for /opt/homebrew/Cellar/nano

However when i use tmux,

type nano
shows the same path but when nano is actually used it opens the preinstalled system version
. I’m not sure if that’s an error in my tmux config or nano.