1989 XT600Z Tenere and 2009 F800ST
The pulley should easily last 100k miles. The correct way to fix the issue would be to fit a new output shaft. Personally, I would just weld the pulley to the shaft since it will likely outlast your time with the bike. And if not, you have lost nothing and can replace the shaft and pulley later in life.