Blastoidea Sure. Tor is vulnerable to an attack type where a largre number of malicious nodes get set up by governments or other organized groups. (Malicious nodes are very common either way.) They can deanonmyize you if they two of your hop nodes. This is not illegal, and when the law would normally protect you from them accessing your VPN traffic they can still use this technique. VPN is one party vs TOR is a decentralized network where anyone can host nodes regardless of intention.
Not to say that tor is useless or bad. Its still very useful in many cases.