Personalized Worked Example Generation from Student Code Submissions using Pattern-based Knowledge Components (ArXiv cs.ET Recent Papers, 2026)