Lets assume the language $L=\{a^n b^m\}$
When we try proofing $L$ is regular using the Pumping lemma and say $w=xyz$ and thus for every $w=xy^iz $ , $w$ has to be $ \in L $.
now if we say $y$ only consists of $a$'s or $b$'s everything seems to be fine because there are no restrictions on how many $a$'s or $b$'s a Word from $L$ should contain.
But if I now say $y$ consists of $ab$ and pump $y$ at least once. Dont we end up with a Word that is not from the given Form of $a$'s followed by $b$'s. So how can $L$ possibly be regular

Welcome to MSE! This language is regular as there are no restrictions on $m$ and $n$. The Pumping Lemma is only applied if you want to show that it's not regular.
You can either provide a finite-state automaton accepting this language or a regular grammar generating this language. Both tasks are easy exercises.