I haven't tested this, but you will need to use a combination of
Right, NotRight and Left formulas to pull out the parts.
Then combine back together.
var text Left=Left([Tax ID], "-");
var text Right=Right([Tax ID], "-");
var text Middle=Left(NotRight([Tax ID], "-"), "-");
$Left & $Middle & $Right
Does that logic make sense?