Hi Peter,That's correct. Your connection will run through either Chiasso or Domodossola (details can be found through the timetable) and that's where the validity of a Swiss Pass (or any other STS rail pass) ends. So you have to buy a regular ticket from Chiasso or Domodossola to Venice.
All you need to know about traveling by train, bus or car in Switzerland.
Hand picked Swiss hotels and other accommodations are right here.