Don’t hide extension for known file types, even not while running some application as administrator

I’m working with Windows 11, and I don’t want extensions to be hidden, even for known file types. This is clearly the case for my Windows explorer, as you can see in the following screenshot:

Windows explorer screenshot

  1. The file “hosts” does not have an extension => OK!
  2. The file “hosts.ics” has a known extension and it’s shown => OK!
  3. The file “lmhosts.sam” has an unknown extension and it’s shown => OK!

When I start Notepad++ as an administrator and try to open a file, this situation changes as you can see:

Notepad++ screenshot.1

  1. The file “hosts” does not have an extension => OK!
  2. The file “hosts.ics” has a known extension and it’s not shown => NOK!
  3. The file “lmhosts.sam” has an unknown extension and it’s shown => OK!

When I start Notepad++ regularly (not as administrator), the situation is ok again:

Notepad++ screenshot.2

  1. The file “hosts” does not have an extension => OK!
  2. The file “hosts.ics” has a known extension and it’s shown => OK!
  3. The file “lmhosts.sam” has an unknown extension and it’s shown => OK!

When I do the same thing with the regular Notepad (Windows application), the behaviour is equal as with Notepad++, so I believe it’s a Windows problem.

Does anybody know how to handle this?