Landlord refusing to pay back security deposit, no rent agreement

Hi, I took a flat on rent on 15th Jan 2022 in Bangalore and it was time when the flats were available for low rents because of COVID situation. The agreed rent was 8k/month and the security deposit was 40k for the flat. No rent agreement was created in the start as it was not asked by the owner. Due to work from home getting extended, we went to our hometown and getting the rent agreement was delayed. Now in the start of May, out of nowhere the landlord has asked for 14k monthly rent or to vacate the flat. As I do not have trust on him whether we will again ask for higher rent in couple of months, we decided to vacate the flat. Now the owner is asking to vacate the flat and he will return security deposit after a week once we vacate the flat. He has also mentioned that there will be deductions if painting is required. I cannot trust whether he will return the security deposit or not and even if he does, he will deduct painting cost and any other cost. The flat is in same condition as we got it and we just stayed here for 2 months so, obviously no painting is required. I have found another flat and paid token money to book it. I am confused what should I do to recover my security deposit. Rent was paid in time every month and it was transferred to his bank account. There is no rent agreement till now. Please help!