DFA · Regular
Exactly two b’s
Count the b’s and stop counting at two: any a leaves the count alone, and a third b has nowhere to go.
The author’s examples, run
bb → acceptbaab → acceptabb → acceptaaaaaaabba → acceptab → rejectaaab → rejectbbb → rejectbaaaaaabba → reject