> Will `sp_flush_log` also cause log records of uncommitted transactions to be written to disk?

It might, as a side-effect.

Any log blocks flushed to harden *delayed durability* transactions might also contain log records for uncommitted transactions.

This doesn't affect the state of those transactions, just whether their log records are in memory or on disk. The effect of any uncommitted transactions would be undone at recovery time as usual.

See <a href="https://sqlperformance.com/2022/02/transaction-log/part-2-log-architecture#:~:text=for%20each%20VLF.-,Log%20Blocks,-Each%20VLF%20contains">The SQL Server Transaction Log, Part 2: Log Architecture</a> by Paul Randal.