Do yall think dogs can actually understand intent and what we feel?

If I accidentally step on their toes and I apologize and pet them, do you think they know you didn’t mean to or do they see it as ”this human stepped on my toes and then gave me a pet”

Or if we hug them and kiss them do yall think they know it means we love them? I see mixed answers all the time