*.{jpg,png,webp} looks like a glob for three extensions, but braces are expanded first into three separate globs. Any type you do not have stays as a literal *.webp in the command.
With extglob on, @(a|b|c) matches exactly one of the alternatives, inside a single glob:
shopt -s extglob
ls *.@(jpg|jpeg|png)
This gives only the files that exist. Compare it in a folder with one PNG:
echo *.{jpg,png,webp}
# *.jpg c.png *.webp
echo *.@(jpg|png|webp)
# c.png
That leftover *.webp is what makes cp *.{jpg,png,webp} dest/ fail with a confusing No such file error.
Set shopt -s extglob on its own line, before the line that uses the pattern. Bash reads a whole line before it runs any of it, so putting both on one line gives a syntax error near (, which I find an annoying trap. On many distributions the bash-completion package switches extglob on in interactive shells, but scripts start without it. The other operators work the same way: +(...) for one or more, ?(...) for zero or one.
Further reading: Bash manual: Pattern Matching