May 11, 2020 | 3:08pm

These kids got a “Perfect” lockdown lesson.

Ed Sheeran surprised a class of young British school kids by joining their Zoom video lesson — even teaching them to play some of his hits, according to a report.

The “Shape of You” superstar surprised the elementary-aged kids at South London’s Ecclesbourne Primary School by joining the class taught by his friend, songwriter Timothy Spoerer, The Sun said.

He shared about his own school years and the “hard work and struggling” it took to make it in music — and even taught them how to play hits like “Perfect” on the guitar, the UK paper said.

The school district first revealed his surprise appearance on April 30.

Sheeran admitted to the kids that he “wasn’t very smart at school,” the paper said. “I thought I was an idiot for a very long time,” he reportedly told the pupils.

“I couldn’t do maths, science and English and I was told to be successful in life you had to do those things.

“I loved playing music, that’s what made me happiest. My dad always said to me, ‘If you want to be a musician work really hard at it,’ ” he told them.

He also admitted that he had no immediate plans to end his music-business hiatus.

“Not for a while some time next year,” he reportedly told them. “I need a year off not doing anything. Getting back to normal life.”