I’ve been sedated several times to varying degrees, and it really depends on the strength of the sedation as to how aware you are/aren’t and how you react.
So e.g. I was sedated when I had my wisdom teeth removed in my 20’s, and I know that I talked afterwards, and apologised to the dentist, who I called by his first name, if I had been over emotional in anyway, which apparently I hadn’t been. 
The other times have varied depending on the reason. So e.g. I’ve had a procedure called a t.o.e. Which is not unlike an endoscopy in that they put a probe down your throat, but it’s to look at the heart from both sides, and when I’ve had that I don’t remember anything about it, but I am awake quickly afterwards.
When I had my ICD fitted I had very mild sedation essentially to relax me a bit, and I had a full-on conversation with the staff during the procedure, and a bacon roll afterwards.
.
But the other two times I’ve been sedated were once when I was on life support for 3 days, and the other time when I was just on a ventilator following a cardiac arrest, and in both instances I remember absolutely nothing, and very little of the subsequent hours when the sedation was removed.
Whenever I’m sedated though it makes me very sleepy for hours after. But I don’t care.
In fact when I was in ICU in 2019 and they were inserting lines and tubes and such I asked if I could have sedation so as to not have to be awake, and was told no, because my blood pressure was too low so if I lost consciousness they would know why, whereas if I was sedated they wouldn’t. Gutted.
g