Are those links in forum posts or are they just stale and the next time Google crawls your site they’ll go away?
If it’s the former, you could do a global replace in the database. If it’s the latter, you can wait, or add some redirects to the nginx config.