It's possible they are still hiring for software and laying off for other areas.
It all depends on context though - for a company as massive as Tesla, 20+ open postings for SWE is nothing. It certainly doesn't warrant alarm bells, I think.
20 open positions, especially for an in demand profession like software, is the norm at companies at such size who are doing well.