Huh? Clearly you are clueless about Tesla's financials.
Tesla's gross margin is a piddly 18%. They also need money to build and maintain service centers, super charger networks (all needed because Tesla doesn't have a dealer network or a gas network).
Then there is debt servicing, working capital, maintaining their plants, inflationary effects of labor wage (as their labor pool gain experience). All these are not discretionary R&D.
Tesla is fundamentally unprofitable and Musk suddenly has realized this and hence the major pivot to FSD (which is about 15 years away)