SpaceX's contracts were absolutely subsidies - the contracted Falcon 1 tests and the resulting Falcon 9 contracts were an expensive moonshot for the USG at first - but even if you discount them, Tesla absolutely hoovered up subsidies like the EV tax credits.
They even have a page about them: https://www.tesla.com/support/incentives