gdpr compliance depends a lot on who you ask, and only a court can make the final decision.
Stripping all usernames out of a forum certainly makes it safer, but I don't think anyone can say there still won't be a few pissed off users who wrote things they now regret on there, and can be tracked back to individuals based on context/writing style alone.