Are you running that just from inside sqlcl ? I can't reproduce.
SQL> version
Oracle SQLDeveloper Command-Line (SQLcl) version: 20.2.0.0 build: 20.2.0.174.1557
SQL> host ls -l /tmp/*.sql
-rw-r--r--. 1 oracle oinstall 20 Dec 11 11:37 /tmp/x$.sql
SQL> host cat /tmp/*.sql
select * from dual;
SQL> @/tmp/x$.sql
DUMMY
________
X