Your language consists of all strings with an even number of $a$'s and an odd number of $b$'s. How do we construct a regular expression for such a language?
Let us assume for starters that the word starts with $bb$. Thus, it has the form
$$
bba^{n_1}ba^{n_2} \ldots ba^{n_m},
$$
where $m$ is even and $n_1+\cdots+n_m$ is even. This suggests grouping the $b$'s in pairs $ba^kba^\ell$. There are two types of pairs: a pair with $k+\ell$ even, and a pair with $k+\ell$ odd. If we denote the first type with $E$ and the second type with $O$, then our word is of the form $bs$, where $s$ is a word over $\{O,E\}$ with an even number of $O$s. Such words $s$ are described by the regular expression $E^*(OE^*OE^*)^*$. Also, it is easy to express $E,O$ as regular expressions:
\begin{align}
E &= b(aa)^*b(aa)^* + ba(aa)^*ba(aa)^* \\
O &= ba(aa)^*b(aa)^* + b(aa)^*ba(aa)^*
\end{align}
Altogether, we obtain a regular expression for all words in your language that start with $bb$.
In the general case, let the word start with $a^kba^\ell b$. If $k+\ell$ is even, then this is the same case as before. Otherwise, we need an odd number of $O$s, and so the $\{O,E\}$ part of the word is described by $E^*OE^*(OE^*OE^*)^*$. Altogether, we obtain the following regular expression:
$$
[(aa)^*b(aa)^*+a(aa)^*ba(aa)^* + a(aa)^*b(aa)^*E^*O + (aa)^*ba(aa)^*E^*O]E^*(OE^*OE^*)^*.
$$
(a+b)*
forstrings having different combination of a and b
– Harshil Modi Jan 06 '21 at 19:33