The COM support in .Net is different from the .Net Framework. For COM servers created using the .Net Framework registration of the server and and generation and registration of the related type library can be performed by Regasm.exe.
COM Servers created using .Net are registered by regsvr32.exe and there is no built-in support for creating and registering a type library (necessary for VBA).
However, the sample at https://github.com/dotnet/samples/tree/main/core/extensions/OutOfProcCOM contains everything needed to solve the type library issue. In particular, it shows how to use an IDL file and midl.exe to generate a type library and also shows how to embed that type library within a COM Server. I suggest you pay close attention to the DllServer project included in the sample.
Additionally, see the Answer and related comments on a similar issue here - [https://learn.microsoft.com/en-us/answers/questions/1180474/exposing-net-7-classes-as-com-for-excel-vba-(and-v](https://learn.microsoft.com/en-us/answers/questions/1180474/exposing-net-7-classes-as-com-for-excel-vba-(and-v)