Find the remainder when $ 528528528...$up to $528$ digits is divided by $27$?

Here is a python3 session

>>> s = '528' * 176
>>> len(s)
528
>>> int(s) % 27
21

You can see that $6$ cannot be correct by casting out $9$'s: Since $5+2+8=5+5+5$, we have

$$528528\ldots528\equiv5+5+5+\cdots+5+5+5=5\cdot528\equiv5(5+2+8)\equiv5\cdot6\equiv3\mod 9$$

so the remainder mod $27$ must be either $3$, $12$, or $21$. Your approach gave the correct answer, $21$.