If $a^b, (a^b)^c, (a^{bc})$ are defined and we are only using real numbers then $(a^b)^c = a^{bc}$.
It is completely fundamental that $a^{b+k} = a^ba^k$ and so if $bc = \underbrace{b+b+....+b}_{c\text{ times}}$ then $(a^b)^c = a^{bc}$. ("But what if $c$ isn't an integ..." whack.... don't pay any attention to that voice under the carpet.)
If any of them are undefined for any reason, say $a<0$ and $b$ is a fraction with an even denominator in its lowest term, or if $a=b=0$ then it's not so much that $(a^b)^c = a^{bc}$ is false (it isn't) but that the statement is meaningless as it has undefined terms.
======
With complex number we can define all $a^b$ (except for $a=b=0$). But that thing is it is multivalued. What is $a^{\frac 12}$? Well, it is the number $k$ so that $k^2 = a$. But... if $k^2 = a$ then $(-k)^2 = a$ also... which one is $a^{\frac 12}$. Well, the answer is... the both are. Or more $a^{\frac 12}$ is a set of two values so that $k^2 = a$.
So can we say $(a^b)^c = a^{bc}$. Well, the issue isn't that it isn't true. It's that there are multiple values of $a^b$ and of $(a^b)^c$ and $a^{bc}$ and for at least one set they will synch up but others can be notational trickery and not make sense.
There's an old paradox. $i = \sqrt{-1}$. (which isn't really true; $i^2 = -1$ but $\sqrt{-1} = $ the set of both $i$ and $-i$.)
Then $1 = \sqrt{1*1} = \sqrt{-1*-1} = \sqrt{-1}*\sqrt{-1} = i*i=i^2 = -1$.
If you ask must people where the error is they'll say the rule $(ab)^{k} = a^kb^k$ only holds for positive numbers. Which is partially true.
But more to the point there are multiple values that $\sqrt{}$ can be.
$1$ can be one thing: 1. And $\sqrt{1}=\sqrt{1*1} =\sqrt{-1*-1}$ can be two things: $1, -1$. And $\sqrt{-1}$ can be two things: $i$ and $-i$. And $\sqrt{-1}*\sqrt{-1}$ can be four things: $i*i = -1; i*(-i) = 1; (-i)*i=1; (-i)*(-i) = -1$. and as inclusions... it's true: $1 \in \{1,-1\}$ but we can't reverse the direction.