Taiwan is a region and a very important one, no one was denying that, even the Chinese government. The dispute was on what a country means and it has complicated historical reasons on both sides. Same thing goes for why Guam and California are not the same political entities among the US, or why Spain doesn't recognize Catalonia.
Don't be ignorant and try to judge on things you don't fully understand.