Use .env values in Craft 3 plugin settings
You could try declaring the variable $youtubeApiKey with no value set. Instead of using
public $youtubeApiKey = '$YOUTUBE_API_KEY';

try using
public $youtubeApiKey;