> _I want to detect whether this list has repeated element a,a or b,b_

    list={a,b,a,b,b,b,a,b,a,a,b};
    SequenceCases[list,{Repeated[x_,{2}]}]
> {{b, b}, {a, a}}