> Is this actually true?
Yes. The governments of the world switched recognition from the Republic of China to the People's Republic of China, and transferred "China's" UN Security Council seat to the PRC.
> However, it seems clear that at least most western countries see Taiwan as its own country in practice.
They maintain informal ties, but not formal diplomatic ties. Even the PRC has informal ties with the ROC.
> surprised to hear that Taiwan isn't supposed to be its own country
It's perhaps surprising, given Taiwan's de facto independence, but legally, it's not that surprising. Taiwan was a part of China, and it's difficult to define a point in time at which it ceased to be so. Both the ROC and PRC agreed that Taiwan was part of China for decades after the end of the civil war. The Taiwanese independence movement, which has become much stronger over the last 20 years, has changed sentiment in Taiwan itself. However, it would be a major step for other countries to decide that Taiwan no longer legally belongs to China.