Dialyzer "Could not get Core Erlang code for"

I could not reproduce it in that repo; I’m using ASDF with following .tool-versions:

erlang 25.2.2
elixir 1.15.0-otp-25

This thread suggests it can be issue with how Elixir was built: Dialyzer in ElixirLS cannot access .beam files for core erlang code - #5 by heathen