Error when passing variable to function
In addition to fixing single quotes as instructed by Laurenz, you might have to use the (default!) replication set '{ddl_sql}' for the command replicate_ddl_command(). The error message

cannot drop active portal &quot;pglogical&quot;

indicates an open portal with a prepared statement that would conflict with the DDL command.
CREATE OR REPLACE FUNCTION public.intercept_ddl()
  RETURNS event_trigger
  LANGUAGE plpgsql AS
$func$
BEGIN
   PERFORM pglogical.replicate_ddl_command(current_query(), '{ddl_sql}');  -- !!
END
$func$;

You did not disclose the actual event trigger, but could look like this
CREATE EVENT TRIGGER foo
ON ddl_command_start
WHEN TAG IN ('CREATE TABLE', 'ALTER TABLE', 'DROP TABLE')
EXECUTE FUNCTION public.intercept_ddl();

Filter command tags in the trigger itself, obviates the need to do so in the function. That's more efficient as the function is only called for applicable tags to begin with.
Quoting the manual of pglogical:

There are three preexisting replication sets named “default”,
“default_insert_only” and “ddl_sql”. [...] The “ddl_sql” replication
set is defined to replicate schema changes specified by
pglogical.replicate_ddl_command

And:


pglogical.replicate_ddl_command(command text, replication_sets text[]) Execute locally and then send the specified command to the
replication queue for execution on subscribers which are subscribed to
one of the specified replication_sets.Parameters:

command – DDL query to execute
replication_sets – array of replication sets which this command should be associated with, default “{ddl_sql}”