The error message you received is intended to be self-explanatory, so let's recap. The error says, if I restate (since you included a png to show the output instead of copying and pasting, as requested in the FAQ), 'you gave me a bunch of gene IDs that look like this: ENSG00000227232.5, and yet what I expected looked like this: ENSG00000227232'
And if you look closely at the example IDs, the only difference is a subscript that is a period, followed by a number. Which indicates to me that the answer is to strip off the offending subscript that is being complained about? If you are confused as to how one does that, see ?gsub.