You won’t be penalized by Google based purely on it being a region- or country-level TLD.
However, if you are trying to attract users outside of the EU, they may be less likely to click when they see the .eu TLD. Clickthrough rate on the SERP is a major signal to Google on how to rank a result for a given query.