In the United States a ride share driver is a part of the Gig economy. The IRS even has a Gig Economy Tax Center.
You will eventually find Pub 463. Travel, Gift, and Car Expenses.
It boils down to to options. a standard rate for every mile you drive for business, or calculating the actual expenses:
Actual car expenses include: