They are one of those things that governments and big tech do not like. They are too easy for just anyone to operate, so I think we can see more legislation aimed at making running forums harder or more expensive, like the Online Safety Act in the UK.
As programmers we assume we have to preemptively comply with every possible rule, which is a heavy burden, but I think in every case that isn't completely egregious (like 4chan) the government asks you nicely first. When I look at people with successful projects they only seem to be concerned with following the most obvious laws and the ones they have been warned about following.
An exception is copyright law. Because of massive corporate pressure, you can go to jail quickly for sharing a copyrighted work. Fortunately there's still section 230 which immunizes intermediaries.