Luke Perry's final Riverdale episode airs this week