Yeah, the dashed line in AI is an appearance along a path, not individual dashes.
There’s a tutorial on using a Brush to create actual dashed lines here: