Have (got) (someone) pegged as (something) phrase
If a person "has someone pegged as something", he/she instinctively understands that person's type of character or knows what kind of person they are.
The local residents has the firefighters pegged as a brave guy.
I had got you pegged as a troublemaker, sorry for that misperception. You've just done a great job.
She had had Nick pegged as a total bore until he told her a funny joke.
The verb "have" should be conjugated according to its tense.
The verb "peg" in this phrase has a slang sense of "identify, classify" which is recorded by 1920.
To make love or have sex with someone
They just jumped each other’s bones after one date.